米度软件:www.midosoft.cn
#include<map>
#include<iostream>
using namespace std;
map<int,int>mp;
int main()
{
mp[1]=2;
mp[3]=5;
map<int,int>::iterator it;
for(it=mp.begin();it!=mp.end();it++)
{
printf("%d %d/n",it->first,(*it).second);
}
return 0;
}
米度软件:www.midosoft.cn