1、printf和string string ss("hello"); printf("%s\n",ss); 这样的代码得到的结果是异常,而写成: string ss("hello world"); std::cout << ss << endl;