智慧 + 毅力 = 无所不能

正确性、健壮性、可靠性、效率、易用性、可读性、可复用性、兼容性、可移植性...

导航

2013年8月13日

摘要: 转自: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 阅读(838) 评论(0) 推荐(0) 编辑