error: stray '\343' in program 问题解决
????? 當(dāng)我們從網(wǎng)上copy一段代碼后,總會(huì)出現(xiàn)這個(gè)問(wèn)題。博主在Arduino環(huán)境中也出現(xiàn)了,so,這個(gè)問(wèn)題應(yīng)該是C語(yǔ)言和C++編譯器中才會(huì)出現(xiàn)的。
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
這個(gè)錯(cuò)誤是由于使用了中文引號(hào)或其他全角符號(hào),還有一種就是有中文的空格(這個(gè)不容易觀察),需調(diào)到頂格處,再用tab即可。
可通過(guò)調(diào)整格式來(lái)解決問(wèn)題,代碼不多的話可以自己在code一遍哦~
轉(zhuǎn)載于:https://www.cnblogs.com/lanzhi/p/6467337.html
總結(jié)
以上是生活随笔為你收集整理的error: stray '\343' in program 问题解决的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 做梦梦到一条水蛇是什么意思
- 下一篇: 数学之路-分布式计算-disco(4)