I have some Java knowledge and now I am learning C++. I am having troubles as expected but there's a problem.
Here, I am trying to create an array of object "Player" and fill it with values of one. But it gives me error
Player* players = new Player[1];
players[0] = new Player(playerWidth, playerHeight, 20, 1);
Error is something like "the operand "=" matches these operands. Operand types are: Player = Player *"
How do I fix it? Do I need to change my approach