codeblocks编码设置

注意编码统一,即文件编码和编译时的编码统一即可。

codeblock13.12下:

文件编码:
setting -> editor ->general setting -> other setting ->encoding此处默认Windows-936即gbk

编译编码:
setting -> compiler -> global compiler settings -> other options在框中输入:
    -finput-charset=GBK
    -fexec-charset=GBK

统一即可。

参考文章

原文地址:https://www.cnblogs.com/thingk/p/4224186.html