Converting strstream to sstream conflict about c_str()

后端 未结 2 1398
执念已碎
执念已碎 2021-01-26 13:53

I have this code block as written with strstream. And I converted it to sstream as below. I\'m not sure, but I think printStream->str()

2条回答
  •  暖寄归人
    2021-01-26 14:18

    Change the return type to std::string and return a std::string object directly.

提交回复
热议问题