本帖最后由 zhangchunbuaa 于 2016-3-30 11:32 编辑
float sina[30]={0.000000,0.104528,0.207911,0.309016,0.406737,
0.500000,0.587785,0.669131,0.743145,0.809017,
0.866025,0.913545,0.951057,0.978148,0.994522,
1.000000,0.994522,0.978148,0.951057,0.913545,
0.866025,0.809017,0.743145,0.669131,0.587785,
0.500000, 0.406737,0.309016,0.207911,0.104528};
float sinb[30]={0.866025,0.809017,0.743145,0.669131,0.587785,
0.500000,0.406737,0.309016,0.207911,0.104528,
0.000000,-0.104528,-0.207911,-0.309016,-0.406737,
-0.500000,-0.587785,-0.669131,-0.743145,-0.809017,
-0.866025,-0.913545,-0.951057,-0.978148,-0.994522,
-1.000000,-0.994522,-0.978148,-0.951057,-0.913545};
我在CCS3.3源程序中定义了两个数组,但是总是报错,是怎么回事?
"SPWM2.c", line 70: error: declaration may not appear after executable statement in block
"SPWM2.c", line 76: error: declaration may not appear after executable statement in block
|