|
typedef struct node
{
uint Year,Date,Time;
uchar Value[64];
}Record;
在程序中定义结构,出现错误,请问是什么原因?
Record bank3 *SampleValue;
SampleValue->Year=0x2007; //将这一行注释掉就能编译通过了
uchar Count=0; /*开始出现错误的那一行*/
Advisory[1208] : use --help option or refer to the user manual for option details
Error[249] D:\projects\LUX-Meter\LUX-Meter.c 44 : probable missing "}" in previous block
Error[984] D:\projects\LUX-Meter\LUX-Meter.c 45 : type redeclared
Error[194] D:\projects\LUX-Meter\LUX-Meter.c 46 : ")" expected
Error[984] D:\projects\LUX-Meter\LUX-Meter.c 46 : type redeclared
Error[285] D:\projects\LUX-Meter\LUX-Meter.c 47 : no identifier in declaration |
|