Codeblocks支持C++11

Setting->Compiler

直接在“Have g++ follow the C++11 ISO C++ language standard [-std=c++11]” 选项上打勾 保存就可以了

原文地址:https://www.cnblogs.com/wuchanming/p/3879870.html