工具和中间件——Codeblocks系列问题

一、Codeblocks格式化代码

右键代码区,弹出对话框,选择Format use Astyle就好了。

二、codeblocks注释和取消注释

ctrl+shift+c:注释掉选中的多行代码

ctrl+shift+x:对已经注释的多行代码取消注释

三、Codeblocks报错:nullptr was not declared

解决办法:

1、Settings/Compiler...,进入Compiler Settings界面

2、然后GNU GCC Compiler/Compiler Settings/勾选Have g++ follow the coming C++0x ISO C++ language standard [-std=gnu++0x]   

3、然后OK退出。

四、codeblocks 修改编码格式

修codeblocks中文乱码

选setting-compiler

GNU-GCC-compiler栏

other opitions

粘上

-fexec-charset=gbk 

-finput-charset=UTF-8 

发布了177 篇原创文章 · 获赞 31 · 访问量 8万+

猜你喜欢

转载自blog.csdn.net/qq_36963950/article/details/103285643
今日推荐