字符远超出32字节,为何程序不出错??
#include<iostream>
#include<string>
using namespace std;
int main()
{
int m=100;
cout<<"m="<<m<<endl;
cout<<"sizeof(m)="<<sizeof(m)<<endl;
string c(33,'*');
cout<<c<<endl;
cout<<"sizeof(c)="<<sizeof(c)<<endl;
string name;
name="thinking c++ don't touch her! she is my girl friend";
cout<<name<<endl;
cout<<"sizeof(name)="<<sizeof(name)<<endl;
system("pause");
return 0;
}