I'd rather have each spot point to one object.
Ah, sorry about that. More like:
Code:
for (unsigned int i=0; i < 8; i++){
for (unsigned int j=0; j < 8; j++){
arr[i][j] = new SomeObject;
}
}
Of course you have to delete accordingly.
EDIT:
I wonder if you can consider this instead:
Code:
//SomeObject* arr[8];
for (unsigned int i = 0; i < 8; ++i) {
arr[i] = new SomeObject[8];
}
But there's the issue that it does not have to be an m*n 2D array anymore, but could become an array of 8 arrays of different sizes, at some point later in the code.