im dynamically creating an array of 'player' objects for a game.
where the number of objects created (and therefore the number of array elements) is determined by the user.
heres what i've got:
where player is the class nameCode:player * Players = new player[numberOfPlayers];
for(int p=0; p<numberOfPlayers; p++)
Players[p] = new player;
and Players is the name of the array
and numberOfPlayers is an integer determined by the user
why wont this work?