Firstly, I have a 2D Array, of which I would like to increase the size of 1 dimension, saving the data already there
Secondly, I need to be able to grab the current size of that dimension, for use in For loops etc
The only way I have found to get the size of a dimension is to have an extra element with some sort of marker in it, and loop until that marker is found
If there is an easier way I would rather use that
And whilst resizing a 1D array isnt hard, resizing a 2D one is more difficult
I could probably come up with the solution myself given enough time, but since I cant find the info here I figured it'd be useful to gather the various methods up in 1 place where people could find them
Secondly, I need to be able to grab the current size of that dimension, for use in For loops etc
The only way I have found to get the size of a dimension is to have an extra element with some sort of marker in it, and loop until that marker is found
If there is an easier way I would rather use that
And whilst resizing a 1D array isnt hard, resizing a 2D one is more difficult
I could probably come up with the solution myself given enough time, but since I cant find the info here I figured it'd be useful to gather the various methods up in 1 place where people could find them