KEIL declaration may not appear after executable statement in block 这个问题也是比较经典,就是不允许你的变量定义位置不允许在下边的代码区域,只允许在最上方 修改编码模式为C99解决