error: stray '\343' in program 问题解决
2016-03-16 15:13
393 查看
当我们从网上copy一段代码后,总会出现这个问题。博主在Arduino环境中也出现了,so,这个问题应该是C语言和C++编译器中才会出现的。
test_int:19: error: stray '\343' in program
銆?銆? char string[25];
^
test_int:19: error: stray '\200' in program
test_int:19: error: stray '\200' in program
test_int:19: error: stray '\343' in program
test_int:19: error: stray '\200' in program
test_int:19: error: stray '\200' in program
test_int:21: error: stray '\343' in program
銆? 銆?itoa(number, string, 10);
^
test_int:21: error: stray '\200' in program
test_int:21: error: stray '\200' in program
test_int:21: error: stray '\343' in program
test_int:21: error: stray '\200' in program
test_int:21: error: stray '\200' in program
exit status 1
stray '\343' in program
这个错误是由于使用了中文引号或其他全角符号,还有一种就是有中文的空格(这个不容易观察),需调到顶格处,再用tab即可。
可通过调整格式来解决问题,代码不多的话可以自己在code一遍哦~
test_int:19: error: stray '\343' in program
銆?銆? char string[25];
^
test_int:19: error: stray '\200' in program
test_int:19: error: stray '\200' in program
test_int:19: error: stray '\343' in program
test_int:19: error: stray '\200' in program
test_int:19: error: stray '\200' in program
test_int:21: error: stray '\343' in program
銆? 銆?itoa(number, string, 10);
^
test_int:21: error: stray '\200' in program
test_int:21: error: stray '\200' in program
test_int:21: error: stray '\343' in program
test_int:21: error: stray '\200' in program
test_int:21: error: stray '\200' in program
exit status 1
stray '\343' in program
这个错误是由于使用了中文引号或其他全角符号,还有一种就是有中文的空格(这个不容易观察),需调到顶格处,再用tab即可。
可通过调整格式来解决问题,代码不多的话可以自己在code一遍哦~
相关文章推荐
- 数组内元素的排序
- Red Hat Linux 7.2配置本地yum源
- Android WebView属性及用法
- 2016.3.15Android 学习汇总
- 堵塞队列--BlockingQueue
- Android异步消息处理机制
- Hello World
- 学会享受孤独是通往成功的第一步
- 了解负载均衡 会话保持 session同步(转)
- 通过ObjectOutputStream序列化和使用ObjectInputStream反序列化
- RatingBar自定义背景下面有直线
- kmp算法及其c++实现
- js兼容性之css的float
- C++继承20160214
- 自信来源于什么?
- TextSwitcher实现分析
- Ngui 左右滑动
- html滑动开关按钮实现
- IOS学习 使用OCMock单元测试(一)安装
- CUBRID学习笔记 14 dll加载错误