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;
相關文章
相關標籤/搜索