[Solved] input class object into array of objects [closed]


You don’t need new there, because you have an array of actorData and not actorData pointers, and the error is saying that it can’t convert actorData pointer to actorData. So replace this line:

actorOrder[index] = new actorData(iNewOrder, sNewActor);

with this:

actorOrder[index] = actorData(iNewOrder, sNewActor);

0

solved input class object into array of objects [closed]