回复3楼:我运行了楼中的程序出现以下结果:
--------------------Configuration: 1111 - Win32 Debug--------------------
Compiling...
1111.cpp
C:\Program Files\Visual C++\Bin\1111.cpp(6) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(6) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(7) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(7) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(8) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(8) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(8) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(8) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(9) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(9) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(9) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(9) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(10) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(10) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(10) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(10) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(11) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(11) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(11) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(11) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(12) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(12) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(12) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(12) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(12) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(12) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(13) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(13) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(13) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(13) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(13) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(13) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(14) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(14) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(14) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(14) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(14) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(14) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(15) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(15) : error C2018: unknown character '0xa1'
C:\Program Files\Visual C++\Bin\1111.cpp(17) : warning C4508: 'main' : function should return a value; 'void' return type assumed
Error executing cl.exe.
1111.exe - 40 error(s), 1 warning(s)
这是为什么呢,如何解决?