我在用C语言编写程序的时候,会出现如下错误,请教下大家,谢谢~~~ 这是凌阳单片机里面的一个液晶显示程序: 其中一个子函数: void R_display (g_fRx) {//float g_fRx; unsigned int g_array[4]={}; unsigned int g_uiAx; int i,j; //用于延时 LCD501_Init(0xff); LCD501_ClrScreen(0); //整屏清屏 LCD501_FontSet(1); //设置大号的ASCII码字体 LCD501_Bitmap(0,16,(unsigned int *)encoding_00); //电 LCD501_Bitmap(16,16,(unsigned int *)encoding_01); //阻 LCD501_Bitmap(32,16,(unsigned int *)encoding_02); //值 LCD501_Bitmap(48,16,(unsigned int *)encoding_03); //: if(g_fRx<100) { g_array[3]=0; //电阻小于100欧姆 g_array[2]=0; g_array[1]=0; g_array[0]=0; }
出现一下一些错误,大家帮我分析分析,谢谢啦!! ERROR: syntax error before `{' ERROR: parse error before `0xff' warning: WARNING: type defaults to `int' in declaration of `LCD501_Init' ERROR: conflicting types for `LCD501_Init' ERROR: previous declaration of `LCD501_Init' WARNING: data definition has no type or storage class ERROR:parse error before `0' warning: WARNING: type defaults to `int' in declaration of `LCD501_ClrScreen' ERROR: conflicting types for `LCD501_ClrScreen' ERROR: previous declaration of `LCD501_ClrScreen' warning: WARNING: data definition has no type or storage class ERROR: parse error before `1' warning: WARNING: type defaults to `int' in declaration of `LCD501_FontSet' ERROR: conflicting types for `LCD501_FontSet' ERROR: previous declaration of `LCD501_FontSet' warning: WARNING: data definition has no type or storage class ERROR: parse error before `0' ERROR: parse error before `16' ERROR: parse error before `32' ERROR: parse error before `48' warning: WARNING: type defaults to `int' in declaration of `g_array' ERROR: invalid initializer warning: WARNING: data definition has no type or storage class warning: WARNING: type defaults to `int' in declaration of `g_array' ERROR: conflicting types for `g_array' ERROR: previous declaration of `g_array' ERROR: invalid initializer warning: WARNING: data definition has no type or storage class warning: WARNING: type defaults to `int' in declaration of `g_array' ERROR: conflicting types for `g_array' ERROR: previous declaration of `g_array' ERROR: invalid initializer warning: WARNING: data definition has no type or storage class ERROR: parse error before `}' warning: WARNING: type defaults to `int' in declaration of `g_array' ERROR: conflicting types for `g_array' ERROR: previous declaration of `g_array'
|