string s = "hello";
const char *cp = s.c_str();
const char *p = "hello";
cout << cp << endl; //hello
cout << p << endl; //hello
string s = "hello";
const char *cp = s.c_str();
const char *p = "hello";
cout << cp << endl; //hello
cout << p << endl; //hello