上一页 1 ··· 137 138 139 140 141 142 143 144 145 ··· 207 下一页

2011年8月3日

求一个字符串中连续出现次数最多的子串

摘要: vector向量中的插入值如上图所示:#include <iostream>#include <vector>#include<string>using namespace std;pair<int ,string> fun(const string &str){vector<string> substrs;int maxcount=1,count=1;string substr;int i,len=str.length();for(i=0;i<len;i++){substrs.push_back(str.substr( 阅读全文

posted @ 2011-08-03 19:42 原来... 阅读(3888) 评论(0) 推荐(1) 编辑

上一页 1 ··· 137 138 139 140 141 142 143 144 145 ··· 207 下一页

导航