#include #include #include using namespace std; void main(){ map students; students["ken"]="Moore"; students["steve"]="DiMarzio"; students["a"]="mmm"; students["z"]="ttt"; students["steven"] = "Bibro"; students["steven"] = "Duplicate";// try dup key pair p; p.first = "veronica"; p.second = "Paramonova"; students.insert(p); cout << students["steve"] << endl; map::iterator i; for(i = students.begin(); i!= students.end(); i++){ p = *i;// derefernce of a map iterator = pair. cout << p.first << " " << p.second << endl; } }