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
问题
解决方案(code blocks 上适用)
问题
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.
相关文章推荐
- 1407251735-hd-美素数.cpp
- 《C/C++/Java/Pascal 程序设计基础》习题集 解题1
- C++ sort(),stable_sort()和partial_sort()
- 写对称字母塔的时候,程序看起来都很复杂,但一步一步来,总是可以解决的!这个过程需要耐心!
- C++ primer读书笔记 5
- C语言Printf格式
- [c++]MFC学习
- 华为机试2013届上机--子串分离
- C++中的指针、数组指针与指针数组、函数指针与指针函数
- C++中的指针、数组指针与指针数组、函数指针与指针函数
- 关于c++的STL的学习与再认识(二)
- C语言陷阱与缺陷(5)
- 典型动态规划之Always On the Run
- 输入m和n,从1,2,3...n中找出和为m的组合
- 输入m和n,从1,2,3...n中找出和为m的组合
- C++堆和栈的区别
- VC++中的.ncb文件
- 几个论坛上看到的2015小米笔试题 分类: C/C++ 2015-07-29 10:51 15人阅读 评论(0) 收藏
- 【C++】求当前exe的运行路径
- 【C++】求数组中所有元素的排列或组合