c++ split 分段函数实现
vector split(const string str,const string delimit){
vector v;
int last_idx=0;
int idx=str.find_first_of(delimit,last_idx);
while(idx != string::npos){
v.push_back(str.substr(last_idx,idx-last_i
原创
2014-09-12 23:47:10 ·
695 阅读 ·
0 评论