|  | 
 
| 再做裸奔1的时候,流水灯中,在代码: while(1)
 {
 Led_Display(1);
 Delay(1000);
 U8 idx;
 
 Uart_Printf("\nPlease select function : \n");
 for(i=0; CmdTip.fun!=0; i++)
 Uart_Printf("%d : %s\n", i, CmdTip.tip);
 idx = Uart_GetIntNum_GJ() ;
 if(idx<i)
 {
 (*CmdTip[idx].fun)();
 Delay(20);
 Uart_Init( 0,115200 );
 }
 
 }
 添加了红色字体部分,并且下面的代码没有注释掉,这样的编译为什么会报错呢?报错信息如下:
 Error   : (Serious) C2304E: <command> expected but found 'unsigned'
 Main.c line 245
 
 Error   : C2456E: undeclared name, inventing 'extern int idx'
 Main.c line 250
 
 F:\TQ2440_Test\src\Main.c: 0 warnings, 1 error, 1 serious error
 
 请高手大哥给小弟解释解释啊,谢谢啦
 | 
 |