2008年7月15日

(原創) 如何将字符串前后的空白去除? (C/C++) (STL)

摘要: 在(原創) 如何将字符串前后的空白去除? (中级) (C++) (使用string.find_first_not_of, string.find_last_not_of) 中已经可顺利将字符串前后的空白去除,且程序相当的精简,在此用另外一种方式达到此要求,且可同时将whitespace去除,并且使用template写法。 阅读全文

posted @ 2008-07-15 21:00 真 OO无双 阅读(4705) 评论(2) 推荐(0) 编辑

导航