摘要: #includeusing namespace std;int maxLen(string newstr){ int i=0; int max_len=0; int n=newstr.size(); while(i<n){ int temp_len=0; char br=' '; while(i<n){ if(newstr[i]=='w' || newstr[i]==br){ temp_len++; i++; cont... 阅读全文
posted @ 2013-07-15 11:34 开心成长 阅读(350) 评论(0) 推荐(0) 编辑