摘要:
转自:http://dewei.iteye.com/blog/1566734//标准C++ string 去除首尾空白字符 2012-8-12 By Deweistatic inline void stringTrim(string &str){ //去除左侧空白符 for (int i = 0; i != str.length(); ++i) { char tmp = str[i]; if (!isspace(tmp)) { str = str.c_str() + i; break; } ... 阅读全文
posted @ 2013-08-13 22:13 Bill Yuan 阅读(842) 评论(0) 推荐(0) 编辑