2006年3月29日
摘要: 有两个string,str1 = "i am a boy", str2 = "iamaboy"写出下面函数的实现char* AddBackSpaces(const char* str, const set& words){ ...}传入的str是"iamaboy",words是["i", "am", "a", "boy"],期望的输出是"i am a boy". 阅读全文
posted @ 2006-03-29 01:48 万俊峰Kevin 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 写一个程序删除给定的一个string中的重复的wordsvoid RemoveDupWords(char* str){}结果保存在str中。 阅读全文
posted @ 2006-03-29 01:45 万俊峰Kevin 阅读(455) 评论(1) 推荐(0) 编辑