1、
warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 [enabled by default] [duplicate]
解决方法:
Project->Properties->C++ Build->Misc Options 在这个里面加下面两行代码即可
gcc -std=c++11
g++ -std=c++11
1、
warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 [enabled by default] [duplicate]
Project->Properties->C++ Build->Misc Options 在这个里面加下面两行代码即可
gcc -std=c++11
g++ -std=c++11
本文标题:在用C++类内初始化遇到的问题
本文链接:https://www.haomeiwen.com/subject/qiapaktx.html
网友评论