gcc編譯c++文件

gcc是編譯c語言的,默認狀況下,若是直接編譯c++程序,會報錯:ios [root@server demo2]# ls hello.cpp [root@server demo2]# cat hello.cpp  #include <iostream> using namespace std; int main(){   cout<<"hello,c++"<<endl;   return 0; }
相關文章
相關標籤/搜索