1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Pointer to Multi-Array

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

  1. InfiniteLoop

    InfiniteLoop New Member

    Joined:
    Mar 12, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    --------------------------------------------------------------------------------

    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
     

Share This Page