Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Pointer to Multi-Array (http://www.go4expert.com/forums/pointer-multi-array-t3369/)

InfiniteLoop 13Mar2007 00:34

Pointer to Multi-Array
 
--------------------------------------------------------------------------------

Hello all. I am having a problem with some pointer assignments:




Code:

//variable init
BITMAP **ptrTile;
BITMAP **ptrSolution;

BITMAP *etile[16];
BITMAP *esolution[4][4];

//after arrays have been filled
ptrTile = etile;
ptrSolution = &esolution[0][0];

//now this is inside a later for loop, and where the error is occuring
ptrSolution[i][j] = ptrTile[(i+j*4)];

The error recieved:

Error 11 error C2679: binary '=' : no operator found which takes a right-hand operand of type 'BITMAP *' (or there is no acceptable conversion)

Any help would be great, thanks


All times are GMT +5.5. The time now is 13:46.