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; }
相关文章
相关标签/搜索