Code:
RECT** array_to_array;
RECT array_to_array2[1][1]; // The first index is the first dimension and so on..
You could also write a function to allocate memory for you:
Code:
RECT** RectMemAlloc(int x, int y) {
RECT** temp = new RECT*[x];
for(int i = 0; i < x; i++)
temp[i] = new RECT[y];
return temp;
}
void RectFreeMem(RECT** free_me, int x) {
for(int i = 0; i < x; i++) {
delete[] free_me[i];
free_me[i] = 0;
}
delete[] free_me;
free_me = 0;
}
int main() {
RECT** alloc_me = RectMemAlloc(4, 4);
RectFreeMem(alloc_me, 4);
}
This should work but I haven't tested it and it's off the top of my head so there might be something wrong but it's something like this.