【VC6.0】error C2143: syntax error : missing ';' before 'type'

来源:互联网 发布:mac上百度云怎么用 编辑:程序博客网 时间:2024/05/17 08:14

用惯了C++,突然用C还真是不适应。。。


【问题】习惯了用什么变量随手定义,但是程序就会出 error C2143: syntax error : missing ';' before 'type' 这个错误

【解决】C语言中,对于变量的定义,只允许放在函数的开头!!

0 0
原创粉丝点击