1、printf和string
string ss("hello");
printf("%s\n",ss);这样的代码得到的结果是异常,而写成:
string ss("hello world");
std::cout << ss << endl;1、printf和string
string ss("hello");
printf("%s\n",ss);string ss("hello world");
std::cout << ss << endl;
被折叠的 条评论
为什么被折叠?