摘要:
bool space(char c){ return isspace(c);}bool not_space(char c){ return !isspace(c);}vector new_split(const string& s){ typedef string::const_iterator iter; vector ret; iter i=s.begin(); while(i!=s.end()) { i=find_if(i,s.end(),not_space);//find_if前两个参数指定一个序列,当第3个参数为TRUE时终止调... 阅读全文