I am trying to write a game(for my class) that can have between 1 to 4 players. I use a string for each players name. I pass the string by reference to the function to get the players names. I am attempting to use a for loop to go through each player and gather the names. When I execute the code and type in 2 players(the function is then called)
"Please enter the name of Player 1: Please Enter the name of Player 2: Please enter the name of Player 3:"