本文主要是介绍C语言错误:error stray ‘ 302’ in program,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
程序编译出错:
$ cc a.c
a.c: In function ‘main’:
a.c:16:9: error: stray ‘\302’ in programelse if (c == ' ' ¦¦ c == '\n' ¦¦ c == '\t')^
a.c:16:9: error: stray ‘\246’ in program
a.c:16:9: error: stray ‘\302’ in program
a.c:16:9: error: stray ‘\246’ in program
a.c:16:32: error: expected ‘)’ before ‘c’else if (c == ' ' ¦¦ c == '\n' ¦¦ c == '\t')^
a.c:16:32: error: stray ‘\302’ in program
a.c:16:32: error: stray ‘\246’ in program
a.c:16:32: error: stray ‘\302’ in program
a.c:16:32: error: stray ‘\246’ in program
在vi中运行: set list可以看到特殊字符:^I。删除它就好了。
这篇关于C语言错误:error stray ‘ 302’ in program的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!