(1)在Edit->File ecoding中,選中以下兩項

(2)
在Setting->Compiler settings->Global compiler settings->Other compiler options中,
輸入以下兩項:
-finput-charset=UTF-8
-fexec-charset=GBK

(3)之后可以正常使用中文,測試平台為win10,codeblocks版本為17.12
(1)在Edit->File ecoding中,選中以下兩項

(2)
在Setting->Compiler settings->Global compiler settings->Other compiler options中,
輸入以下兩項:
-finput-charset=UTF-8
-fexec-charset=GBK

(3)之后可以正常使用中文,測試平台為win10,codeblocks版本為17.12
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。