Help in combining two functions in c++

前端 未结 4 2016
野性不改
野性不改 2021-01-29 13:00

I am just trying something with somebody else\'s code.

I have two functions:

int Triangle(Render *render, int numParts, Token *nameList, Pointer *valueLi         


        
4条回答
  •  [愿得一人]
    2021-01-29 13:33

    If you just change the line

                return putTrianglePosition(render, (Coord *)valueList[i]);
    

    into:

    Coord* vertexList = (Coord*) valueList[i];
    

    followed by the whole body of what's now putTrianglePosition from the opening { to the closing } included, I believe it should just work. If not, please edit your question to add the exact, complete, code as obtained by this edit and the exact, complete error messages you get.

提交回复
热议问题