#include<iostream>
#include<utility>
#include<vector>
#include<map>
using namespace std;
void func_101()
{
typedef pair<string,int> my_pair;
string s;
my_pair box;
int d;
vector<my_pair> ivec;
while(cin>>s>>d)
{
box=make_pair(s,d);
ivec.push_back(box);
}
}
void func_109()
{
map<string,int> word_count;
string word;
while(cin>>word)
{
++word_count[word];
}
for(map<string,int>::iterator map_it = word_count.begin();
map_it != word_count.end();
++map_it)
{
cout<<map_it->first<<" "<<map_it->second<<endl;
}
}
int main()
{
return 0;
}
Charpter 10
最新推荐文章于 2021-11-23 16:09:45 发布