C++ Remove new line from multiline string

前端 未结 12 2305
暗喜
暗喜 2020-12-08 06:14

Whats the most efficient way of removing a \'newline\' from a std::string?

12条回答
  •  囚心锁ツ
    2020-12-08 06:45

    Use std::algorithms. This question has some suitably reusable suggestions Remove spaces from std::string in C++

提交回复
热议问题