#include "stdafx.h"
#include <iostream>
#include <vector>
#include <list>
#include <string>
#include <cctype>
#include <stack>
#include <utility>
#include <map>
#include <algorithm>
#include <numeric>
using namespace std;
bool isShorter(const string &s1,const string &s2)
{
return s1.size() < s2.size();
}
bool GT6(const string &s)
{
return s.size() >= 5;
}
int main(int argc, char* argv[])
{
vector<string> words;
string nextWord;
// while (cin >> nextWord)
{
words.push_back("the");
words.push_back("quick");
words.push_back("red");
words.push_back("fox");
words.push_back("jumpe");
words.push_back("over");
words.push_back("the");
words.push_back("slow");
words.push_back("red");
words.push_back("turtle");
}
sort(words.begin(),words.end());
cout<<"--------排序后-----------"<<endl;
for (vector<string>::iterator iter = words.be
统计大于5个字母的单词的个数
最新推荐文章于 2022-10-10 20:47:54 发布