Could you let us know how to use stl:map as two dimension array? I wanted to access the individual elements as like mymap[i][j] where I do not know beforehand what the value of i or j could be. Any better ideas to do the same thing in other way?
Share
You can do
For example:
prints 7 on the standard output, followed by “My map contains a value for [9][2]”.