Can someone have a look at the following code:
PHP Code:
void screen::setMultiArray(const int x, const int y)
{
seatsXY = new customer***[4];
for (int i=0;i<5;i++)
{
seatsXY[i] = new customer**[x];
for (int j=0; j<x; j++)
{
seatsXY[i][j] = new customer*[y];
}
}
}
its a small function to set up a dynamic three-dimensional array of pointers of type customer.
Later in the program, I need to test each pointer in the array, one by one, to see if an actual reference has been set to that pointer. Does anybody know how to do this?
Thanks for your help.