1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Pointer to Multi-Array

Discussion in 'C' started by InfiniteLoop, Mar 12, 2007.

  1. InfiniteLoop

    InfiniteLoop New Member

    Mar 12, 2007
    Likes Received:
    Trophy Points:

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

    //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

Share This Page