linux 下c++ 的奇怪错误error: stray ‘\343’

来源:互联网 发布:淘宝乐器 编辑:程序博客网 时间:2024/05/22 15:28
 
linux 下c++ 的奇怪错误error: stray ‘\343’ in program2010-09-25 22:59root@ubuntu:/usr/test/linux# g++ 0925_linux.cpp
0925_linux.cpp:54: error: stray ‘\343’ in program
0925_linux.cpp:54: error: stray ‘\200’ in program
0925_linux.cpp:54: error: stray ‘\200’ in program
0925_linux.cpp:54: error: stray ‘\343’ in program
0925_linux.cpp:54: error: stray ‘\200’ in program
0925_linux.cpp:54: error: stray ‘\200’ in program

这个错误是由于使用了中文引号或其他全角符号,还有一种就是有中文的空格(这个不容易观察),需调到顶格处,再用tab即可。


原创粉丝点击