Concatenating strings using operator+ in C++17

前端 未结 0 1938
说谎
说谎 2021-02-05 12:53

This code works fine:

string s = "Hello ";
s += "world";
printf("%s", s.c_str());

However, why would this not work:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题