#include "stdafx.h" using namespace std; int _tmain(int argc, _TCHAR* argv[]) { pair p[3]; p[0].first = "a"; p[0].second = 1; p[1].first = "b"; p[1].second = 2; p[2].first = "c"; p[2].second = 3; map m1(p,p+2); map ::iterator map_it = m1.begin(); map_it->second = 2; cout< second< >c; return 0; }