#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)

解决方案 »

  1.   

    console project,应该没问题的
      

  2.   

    return 0;
    ==========
    后面的“;”看看是不是全角的这符
      

  3.   

    代码没问题,
    楼主不会是误操作修改了stdio.h文件吧?
    重新编译试试
      

  4.   

    顺便说一下,我一双击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文件中下面这些代码处/* Declare _iob[] array */#ifndef _STDIO_DEFINED
    _CRTIMP extern FILE _iob[];--指示这里
    #endif  /* _STDIO_DEFINED */