//再利用新的map存放
int main()
{
char* array[] = {"Make yourself at home"
,"None of your business"
,"I will be more careful"
,"How about going to a move?"
,"Your life is your own affair"
,0};
typedef multimap<int,char*,greater<int>> mymap; //greater<int>为内置比较函数
mymap mp;
for(int i = 0; array[i] != 0; ++i){
mp.insert(make_pair(match(array[i]),array[i]));
}
for(mymap::iterator it = mp.begin(); it != mp.end(); ++it){
if(it->first != 0)
cout<<it->first<<" "<<it->second<<'\n';
}
cout<<endl;
return 0;
}