Accelerated C++ Chapter6 使用库算法
摘要:
Chapter6 使用库算法6.1.1 分割字符串 1 bool space(char c) 2 { 3 return isspace(c); 4 } 5 6 bool not_space(char c) 7 { 8 return !isspace(c); 9 }10 11 vector split(const string& str)12 {13 typedef string::const_iterator iter;14 vector ret;15 16 iter i = str.begin();17 while(i != str.end(... 阅读全文
posted @ 2013-10-12 22:59 startfromjava 阅读(155) 评论(0) 推荐(0)
浙公网安备 33010602011771号