对于较低版本,要分别安装gcc和g,请执行以下命令:
yum install gcc-c yum install gcc
# includeiostreamusingnamespacestd; int main () #if_cplusplus=201103L|(defined ) _MSC_ver ) _MSC_VER=1900 ) cout 'C 11 is supported '; #else cout 'C 11 is not supported '; #结束计数结束; 返回0; }