#include <iostream>
#include<map>
using namespace std;
int main()
{
map<char, int>op;
op['a'] = 40;
op['r'] = 30;
op['m'] = 20;
printf("%d\n", op['r']);
for (map<char, int>::iterator it = op.begin(); it != op.end(); it++)
{
printf("%c %d\n", it->first, it->second);
}
return 0;
}
转载请注明原文地址:https://ipadbbs.8miu.com/read-33017.html