Remove/Replace charactors in std::string
This is a way to remove all spaces in a string:
std::string removeSpace(const std::string& str){
std::string strToRemove = " ";
std::string ret(str);
size_t pos = ret.find(strToRemove);...
原创
2019-04-26 13:59:44 ·
340 阅读 ·
0 评论