Embarcadero / Dev-Cpp

A fast, portable, simple, and free C/C++ IDE
https://www.embarcadero.com/free-tools/dev-cpp
GNU General Public License v2.0
2.43k stars 266 forks source link

使用Dev-C++时中文输出乱码 #225

Closed loulytime closed 2 years ago

loulytime commented 2 years ago

我不知道为什么,当时用DevC++写了一个输出中文的程序,运行时出来一个窗口,不管你选是还是否,最终控制台都会乱码。现在急需作者的答复。 main .txt @partouf @jimmckeeth @chuacw @checkdigits @juliomar

Hello-Young commented 2 years ago

[工具] -> [编译器选项] -> [编译时加入以下命令:] -> [-fexec-charset=gbk]; 就可以解决

loulytime commented 2 years ago

[工具] -> [编译器选项] -> [编译时加入以下命令:] -> [-fexec-charset=gbk];就可以解决

谢谢大神,终于解决辣!