如何在Dev-Cpp中使用C++11中的函数:stoi、to_string、unordered_map、unordered_set、auto

如果想要在Dev-Cpp里面使用C++11特性的函数,比如刷算法中常用的stoi、to_string、unordered_map、unordered_set、auto这些,需要在设置里面让dev支持c++11~需要这样做~

在工具-编译选项-编译器-编译时加入这个命令“-std=c++11”:

然后就可以愉快的用这些好用到飞起的C++11函数啦啦啦啦啦啦~~~

猜你喜欢

转载自www.cnblogs.com/Mingusu/p/11979904.html