Hi,
I am used to array of hashes in perl. So I was trying to do something like that in c++. Suppose I have created an array and now I want to store multimap in it. How can I do that ? I need to get some clues about this.
I know that we can put it inside the mutlimap after converting into string but I want to save the index information inside the array also.
This is how I do it in perl normally
Suppose I have an array: {1,2,2,2,4,4,7}
Now I will store it inside a multimap. Then suppose I have to get the position of 2
Just a hypothetical example:
array{multimap} == 1 which will be 2
array{multimap} == 0 which will be 1
I should be able to able to count the 2's or 3's inside mutlimap with reference to Array and then assign some flags.
Like array[0] which is present only once will be "only one"
array[1] which should be "start"
array[2] should be "middle"
array[3] should be "end"
In other words if I have a key in my multimap and I want to flag it with reference to my original array howto do that ?
I hope I will get some advice howto do such a thing in c++.
Thanks