keil中变量声明问题及error: #268: declaration may not appear after executable statement in block

在keil中编译程序时提示:error: #268: declaration may not appear after executable statement in block 错误,说是声明不能在执行语句后,也就是说变量的声明写在了使用语句的后面,致使程序在编译连接时,使用到该变量的语句找不到这个变量,故出错。 这其实与keil所采用的标准有关,Keil5(版本是5,14.2)默认采用C89标
相关文章
相关标签/搜索