C++自写常用函数
fancy_MSF
这个作者很懒,什么都没留下…
展开
-
C++中string的分割函数split
list split(string str, string separator) { list result; int cutAt; while( (cutAt = str.find_first_of(separator)) != str.npos ) { if(cutAt > 0) {原创 2014-08-23 15:00:21 · 895 阅读 · 0 评论 -
C++的string前后去空格函数Trim
#include "stdafx.h" #include //#include #include //#include //#include //#include //#include //#include using namespace std; // //list split(string str, string separator) //{原创 2014-08-23 15:35:03 · 1149 阅读 · 0 评论