stray '/' in program 錯誤

程序中用了一個字符串常量,常量的值是從網上粘貼來的。

結果出現如下的報錯:


../new:8: error: stray ‘/230’ in program
../new:8: error: stray ‘/351’ in program
../new:8: error: stray ‘/203’ in program
../new:8: error: stray ‘/275’ in program
../new:8: error: stray ‘/347’ in program
../new:8: error: stray ‘/255’ in program
../new:8: error: stray ‘/211’ in program
../new:8: error: stray ‘/345’ in program


出現這樣的報錯是因爲網上的文字裏面有很多不可見字符,即使複製到記事本中再拷過來也還是不能完全去掉這些不可見字符。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章