bool isNumber(string s, int& index){
s.erase(0,s.find_first_not_of(" "));
s.erase(s.find_last_not_of(" ") +1);
}
C++的STL一行去除前导/后导空格
猜你喜欢
转载自blog.csdn.net/weixin_64043217/article/details/132598598
今日推荐
周排行