#include<iostream>
#include<map>
#include<string>
using namespace std;
map<string,int> lalala;
int main()
{
lalala["qushiba"] = 5;
lalala["dashuibi"] = 1;
lalala["danshengou"] = 2;
lalala["biaoshibufu"] = 4;
for(map<string,int>::iterator it = lalala.begin(); it != lalala.end(); it++){
cout<<it->first<<‘ ‘<<it->second<<endl;
}
return 0;
}
时间: 2024-10-14 15:37:42