I am new to maps and I have a simple question.
I have a map that stores a string as key and the data I want a map<int, int>
so my syntax is
map<string, map<int, int> test;
What would be the syntax to insert say "hello" and say 3,3?
test.insert( make_pair("hello", ???
Im stuck here.
Also, how would I display the contents?
map<string, map<int, int> >::iterator iter;
iter = test.begin();
cout << iter->first << endl;
cout << (int)iter->second->first;?????
Thanks for your help.