#include <iostream>
#include <map>
#include <string>
using std::cout;
using std::endl;
using std::map;
using std::string;
int main()
{
map<int, string> mp = { { 14, "c" },{ 23, "c++" },{ 32, "java" } };
map<int, string>::iterator it;
for (it = mp.begin(); it != mp.end(); it++) {
cout << "key: " << it->first << " value: " << it->second << endl;
}
return 0;
}
/*
run:
key: 14 value: c
key: 23 value: c++
key: 32 value: java
*/