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

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


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

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

你可能感兴趣的:(VC6.0使用笔记)