您的位置:首页 > 编程语言 > C语言/C++

How to change mode from c++98 mode in Dev-C++ to a mode that supports C++0x (range based for)?

2015-07-29 13:10 477 查看
转自 stackoverflow

问题


How
to change mode from c++98 mode in Dev-C++ to a mode that supports C++0x (range based for)?

解决方案(code blocks 上适用)

Go to Tools -> Compiler Options -> "Compiler" tab

Check the checkbox labeled, "Add the following commands when calling the compiler" And add in the text entry box, "-std=c++11" or if that doesn't work "-std=C++0x"

Should be something like that anyway, I haven't had Dev C++ installed for many years, so I had to look at some screenshots on Google to remember.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: