I need help with this function it will use a for loop to run through each player until it reaches the number of players and ask for the player’s name. The
name for each player will be entered into the string array called names.
Im not good with for loops they make no sense to me.
//variable number showing the number of players
for(int player=0; player<number;player++){
cout<<"Enter "<<player+1<<" name : ";
gets(names[player]);
cout<<endl;
}