摘要:
主要是对字符串的查找,为了方便并且快速的实现查找,用map会比较方便同时如何把一个带有空格的字符串变成多个单词也有一个小技巧char *point=book[i].keyWord;//关键词分离 while(*point){ sscanf(point,"%s",str); point+=strlen(str)+1; string stemp(str); mm_keyWord[stemp].push_back(i);}#include#include#include#include#include#include#include#include#in... 阅读全文
posted @ 2013-10-14 20:57 huhuuu 阅读(425) 评论(0) 推荐(0)
浙公网安备 33010602011771号