View Single Post
Old 03-29-2005, 01:25 PM   #1 (permalink)
glennandrewcoop
Registered User
 
Join Date: Mar 2005
Posts: 6
glennandrewcoop is on a distinguished road
Problem with multi-dimensional array of pointers

Ok, have a look at the following code, which is throwing up the error:

error C2440: '=' : cannot convert from 'screen::newDim * ' to 'screen::newDim'

in the header file, i have the following:

Code:
typedef customer* newDim;
in the source file, i have the following:

Code:
  //Set new row and columns pointer arrays
  
  newDim *seatXY = new newDim[x];


  for (int i=0; i<x; i++)
  {
    seatXY[i] = new newDim[y];
  }
x any y have obviously been set at this point, I just basically need a multi-dimensional array holding pointers to references of object customer.

Any help would be greatly appreciated!!
glennandrewcoop is offline   Reply With Quote