今天尽是遇到让我抓狂的问题…头发都要被我自己给揪没了…
起因:我想运行一下大佬的正则表达式 ------------ 经过:
Devcpp报错 “ [Error] ‘regex’ was not declared in this scope” -->以为缺少regex头文件,加上头文件–>
跳转到另一个页面报错 “#error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.” -->
百度不成功后找大佬询问,大佬曰:万能头文件里有regex,C++11标准以上才能用,别再用上古神器了,codeblocks或者clion就不会报错,写C++用sublime用的最多,然后clion、codeblocks–>
百度如何让Devcpp支持c++11–>加上“-std=c++11”失败–>
跑去clion打开了已有的文件–>运行失败–>
打开codeblocks运行–>由于我的设置问题依旧报和devcpp一样的错–>
打开sublime运行–>运行失败
一阵疯狂百度,一阵疯狂抓头发后我成功啦!!!
Devc++加了-std=c++11为什么又不可以运行c++11代码???
原文链接 ------ 实测有效!!!
clion打开已有的项目报“cmake project is not loaded”
新建project,不要打开已有的project,新建project系统会自动给你写CmakeLists.txt
原文链接 ------ 实测有效!!!
如何让Codeblocks支持C++11
原文链接 ------ 实测有效!!!
sublime可以运行regex吗?
大佬曰:sublime确实运行不了regex,它只是个轻编辑器 不是IDE
我又可以了!!!