zl程序教程

您现在的位置是:首页 >  后端

当前栏目

g++默认支持c++11标准的办法详解程序员

C++标准程序员 详解 支持 默认 11 办法
2023-06-13 09:20:03 时间
//第一种,直接包含在源程序文件中,如第一行代码所示 

#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; 

 return 0;