#include <iostream> #include <stdio.h> #include <memory.h> #include <queue> #include <map> using namespace std; int main() { //freopen("d://1.text", "r", stdin); map<int, string> *maps = new map<int,string>(); maps->insert(pair<int, string>(0, "0")); maps->insert(pair<int, string>(1, "1")); maps->insert(pair<int, string>(2, "2")); maps->insert(pair<int, string>(3, "3")); maps->insert(pair<int, string>(4, "4")); maps->insert(pair<int, string>(5, "5")); map<int, string>::iterator it; for(it = maps->begin(); it != maps->end(); it++) { cout << "int=" << it->first << " string=" << it->second << endl; } return 0; }