std::string学习
1、去除空格
string.erase(std::remove_if(string.begin(), string.end(), std::isspace), string.end());
2、去除指定单词
std::string a = "class * A"; a = a.substr(a.find_first_of("* ")+1); //a==A
长风破浪会有时,直挂云帆济沧海!
可通过下方链接找到博主
https://www.cnblogs.com/judes/p/10875138.html