This might seem like a stupid question but it’s really bugging me.
Basically, I have a 1D array that I need to convert into a 2D array. Basically, the size of the array is: 62017 now from this, I need to get the Rows and Cols of this. But, do this dynamically, so for example, it would take the number of say: 43101 and then establish the rows+cols and then re-size the vector accordingly.
I hope I’ve explained enough and hope someone can help, thanks 🙂
And here it is old school array style (since I can’t access a C++0x compiler at the moment)