char pp[10] = "shanrui";
string pps((char*)pp, 10);
cout << pps << endl;
int n = pps.size();
char* stc = new char[n + 1];
memcpy(stc, pps.c_str(), n);
char pp[10] = "shanrui";
string pps((char*)pp, 10);
cout << pps << endl;
int n = pps.size();
char* stc = new char[n + 1];
memcpy(stc, pps.c_str(), n);