一、C风格—>C++风格
char c[] = "hello world";
string s(c);
cout << s << endl; //hello world
二、C++风格—>C风格
int i;
string s = "hello world";
const char *p = s.c_str(); //const不能省去!
for (i = 0; i < s.length(); i++) {
cou...