//第一種,直接包含在源程序文件中,如第一行代碼所示
#PRagma GCC diagnostic error "-std=c++14"#include <iostream>using namespace std;int main(int argc,char **argv){ cout<<"hello world!"<<endl; auto i=11; cout<<i<<endl; return 0;}//第二種方法,可以直接取別名方法 如下所示:
g++ -std=c++14 test.cpp -o test
新聞熱點
疑難解答