Insert at specific location of a 2d vector
Posted
by
Elgoog
on Stack Overflow
See other posts from Stack Overflow
or by Elgoog
Published on 2012-04-12T11:05:28Z
Indexed on
2012/04/12
11:29 UTC
Read the original article
Hit count: 195
I have a 2d vector which represents a 2d grid; so grid[0][2]
for example. I am needing to 'insert' -might not be the right word here. a vector at a specific location say grid[3][2]
there will definitely be a grid[0][0]
but when im needing to insert into grid[3][2]
there may be nothing before it other than grid[0][0]
and there needs to be the space in between for later on. Is there any way to do this?
Thank you for your help.
ps: I should note that the size of the vectors are not known (they will grow over time)
© Stack Overflow or respective owner