Others, including problems met
Last updated 4 years ago
Was this helpful?
偶尔从网上看到不错的源码,想研究下,不幸编译时遇到
“错误:程序中有游离的‘\240’‘\302’”
首先,编译器提示的\xxx,都是8进制的编码,使用sed做下全文替换,命令如下: sed -i 's/\o240\|\o302//g' testaio.cpp \o指定用8进制编码,中间的|是指要同时替换多个,这样就OK了
sed -i 's/\o240\|\o302//g' testaio.cpp
Reference: