如果你的Codeblocks编辑器在程序运行结果中显示中文乱码你应该按照以下操作:settings->compiler and debugger settings里面,选择对应的GCC编译器

在other options里面加入-finput-charset=GBK和-fexec-charset=GBK
如下图:
Codeblocks程序运行中文乱码
最后点击确定

相关文章:

  • 2021-08-25
  • 2021-05-27
  • 2022-01-23
  • 2021-06-18
猜你喜欢
  • 2021-04-20
  • 2021-05-21
  • 2021-07-07
  • 2021-10-08
  • 2021-04-17
  • 2022-02-14
相关资源
相似解决方案