hello c++11

搞了好久,终于把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;
}


你可能感兴趣的:(hello c++11)