im not sure how to write an assignment operator for a 3d array this is what i have bit i know its wrong
Cells& Cells::operator= (const Cells& cells)
{
resetSize(cells.DEPTH, cells.ROW, cells.COL);
for(int d=0; d<DEPTH; d++)
for(int r=0; r<ROW; r++)
array[d][r] = **this
for(int c=0; c<COL; c++)
array[d][r][c] = cells.array[d][r][c];
return *this;
}
am i at least close on what im suppose to do??