2D array (vector) syntax
Posted on 2003-03-10
I am trying to get the value from a 2D array of vectors, that is a vector< vector<int> > type structure. I can assign values to the array locations using v and v[x][y] just fine, but I cannot seem to get the value out of the location as easily as:
ofstreamObj << v[x][y];
When I step through it with the debugger, it shows the correct values of the array locations as it "passes over" the variables, but when I put v in the Watch Box, it says "Error: Overloaded operation not found." It would make sense that if I can assign a value to a location using the notation above, I should be able to retrieve it doing the same. Perhaps an expect can shed some light on my subject. Thank you.