stray ‘\342’ in program的错误原因

1830阅读 0评论2014-10-07 TrollWarlord686
分类:C/C++

从网上拷贝了一份比较简单的代码,编译时遇见以下问题:

test_getopt.c:9:35: error: stray ‘\342’ in program
test_getopt.c:9:35: error: stray ‘\200’ in program
test_getopt.c:9:35: error: stray ‘\235’ in program
test_getopt.c:12:3: error: stray ‘\342’ in program
test_getopt.c:12:3: error: stray ‘\200’ in program
test_getopt.c:12:3: error: stray ‘\230’ in program
test_getopt.c:12:3: error: stray ‘\342’ in program
test_getopt.c:12:3: error: stray ‘\200’ in program
test_getopt.c:12:3: error: stray ‘\231’ in program
test_getopt.c:13:4: error: stray ‘\342’ in program
test_getopt.c:13:4: error: stray ‘\200’ in program

说一下,出现此问题的原因是,源代码中存在汉语时的字符,如“”、,等,将其改过来即可!
上一篇:TCP/IP数据包结构详解
下一篇:第七周:数据结构 五道作业题