下载最新版的Code::Blocks 10.05
点击 设置 -》编译器和调试器 -》 全局编译器设置 -》 编译器设置 -》 其他选项
加入 -std=c++0x -U__STRICT_ANSI__