Hi
I come from Python background and learning C++. In one of my programs, I need to have one key with multiple values and both being strings.
for e.g.
"str1" ---> "value of str1"
"str2" ---> "value of str2"
"str1" ---> "value of str1 1"
"str1" ---> "value of str1 2"
I think I need something like this:
map<string, vector<string> > mymap
My question is how do I iterate and insert?
Thanks and sorry for n00b question