c++ string去除左右空格
res.substr(res.find_first_not_of(' '),res.find_last_not_of(' ') + 1)
posted on 2018-01-02 21:24 mdumpling 阅读(4055) 评论(0) 编辑 收藏 举报
res.substr(res.find_first_not_of(' '),res.find_last_not_of(' ') + 1)
posted on 2018-01-02 21:24 mdumpling 阅读(4055) 评论(0) 编辑 收藏 举报