User Profile
Collapse
-
I forgot to say something very important. I do not know previously, the size of array (vector) or associative array (map). They grow interactively in execution time and their size may vary in a wide range ( to few hundreeds from hundreeds of thousands and even million). -
In fact, I've change it a bit. What I have is vector < map < int , Object * > >, but I think it does'nt matter. What I need is exaclty what I try to represent.An array with each element having an associative array. To clarify: each position of the array represent a level. In each level I've a group of cells (of a grid) that I must inspect and I use their index as a key in associative array.
You say that bank [ i ] [ j ] does'nt...Leave a comment:
-
Memory access error with STL composed types
Hi all.
First of all let me apologize by my english.
I've googled a lot about my problem, but I had not find anything conclusive.
I have the following piece of code:
which give me the error indicated in comment....Code:vector < map < int , char * > > bank; bank . reserve ( 10 ); if ( bank [ 0 ] [ 0 ] == "a" ) //Memory access error (Access violation at address #blabla)
No activity results to display
Show More
Leave a comment: