multiple object instances at runtime
im making a multiplayer game, and ive asked the user to input how many players to a numberOfPlayers variable
i then want to create an instance of a player class for each player using a for loop..
i want to make the player variables named player1, player2 etc..
for(int p=1; p<=numberOfPlayers; p++)
how can i do this?
ps.. i can see im going to have to declare the player variables on the free store, but its just the naming of the variables im stuck with..