View Single Post
Old 04-11-2005, 06:47 AM   #1 (permalink)
glennandrewcoop
Registered User
 
Join Date: Mar 2005
Posts: 6
glennandrewcoop is on a distinguished road
Help required with pointers

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=0j<xj++)
      {
        
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.
glennandrewcoop is offline   Reply With Quote