摘要:
之前看的谁出的面试题来着。不太记得了。不过今天水微软的编程之美第一题的时候我用了split,所以就实现了一个。当然可能还不满足那个面试题的要求,因为我只是用了istringstream而已。先写在这儿吧,过两天再来做那个面试题。std::vector<std::string>& split(const std::string& ori , char ch , std::vector<std::string>& ans){ std::istringstream iss(ori); std::string item; while(std::getli 阅读全文
posted @ 2013-04-06 16:18 1957 阅读(1811) 评论(0) 推荐(0)
浙公网安备 33010602011771号