hello c++11

来源:互联网 发布:淘宝产品历史价格查询 编辑:程序博客网 时间:2024/05/22 06:57

搞了好久,终于把gcc4.7装上了,我是虚拟机里面的gcc4.7.2

#include<iostream>using namespace std;class A{public:char m[11]={'h','e','l','l','o',' ', 'c','+','+','1','1'};};int main(){A a;for(int i=0; i<=11; i++)cout<<a.m[i];cout<<endl;return 0;}


原创粉丝点击