如何让Dev C++可以使用C++11、C++14标准

最新版本的Dev C++(即5.11版),经过以下操作后可完美使用新版本C++标准。

1、Tools  ——> Compiler Options. 

2、勾选“Add the following commands when calling the compiler:”,填入"-std=c++11" 或者"-std=gnu++11"

如果要支持c++14,可以填入"-std=c++14" 或者"-std=gnu++14"

发布了132 篇原创文章 · 获赞 136 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/Aibiabcheng/article/details/104708516