I am trying to make a map of string and integer like this
map<string,int>m;
Insertion is going something like
m["sunday"]=52;
m["monday"]=51;
...
...
...
But whenever i try to iterate it using iterator like this
map<string,int>::iterator it;
for(it=m.begin();it!=m.end;it++)
cout<<it->first<<" "<<it->second;
The output is not like the input inserted.I want to know how to maintain the insertion order in c++ .I searched the web and i found same question but on java.