g++编译时默认支持C++11的几个配置小方法

//第一种,直接包含在源程序文件中,如第一行代码所示 #pragma GCC diagnostic error "-std=c++11" #include <iostream> using namespace std; int main(int argc,char **argv) { cout<<"hello world!"<<endl; auto i=10; cout<<i<<endl;
相关文章
相关标签/搜索