如何在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函數啦啦啦啦啦啦~~~
相關文章
相關標籤/搜索