我用VC新建了一个cpp文件,哪怕就写下面这点基础代码,一编译就出现下面错误,怎么回事啊,是不是我的vc哪儿没调好,本人没用过vc#include <stdio.h>
int main(void)
{
return 0;
}
编译报错如下:
--------------------Configuration: a - Win32 Debug--------------------
Compiling...
a.cpp
c:\program files\microsoft visual studio\vc98\include\stdio.h(220) : error C2144: syntax error : missing ';' before type 'int'
c:\program files\microsoft visual studio\vc98\include\stdio.h(220) : error C2501: '_CRTIMP' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\stdio.h(220) : fatal error C1004: unexpected end of file found
Error executing cl.exe.a.exe - 3 error(s), 0 warning(s)
int main(void)
{
return 0;
}
编译报错如下:
--------------------Configuration: a - Win32 Debug--------------------
Compiling...
a.cpp
c:\program files\microsoft visual studio\vc98\include\stdio.h(220) : error C2144: syntax error : missing ';' before type 'int'
c:\program files\microsoft visual studio\vc98\include\stdio.h(220) : error C2501: '_CRTIMP' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\stdio.h(220) : fatal error C1004: unexpected end of file found
Error executing cl.exe.a.exe - 3 error(s), 0 warning(s)
说明你的int类型都不识别,你新建的what?