Writing a program for class and I'm having a very hard time trying to pass values.
The assignment says "Write the procedure GetPlayerNames, which will accept two names as input from the users, and returns both names to the calling program.
For the two names in the main function, declare the names like this:
char player1[NAME_SIZE];
char player2[NAME_SIZE];"
For the two names in the main function, declare the names like this:
char player1[NAME_SIZE];
char player2[NAME_SIZE];
and change the function call to GetPlayerNames(player1, player2);
Also, function GetPlayerNames does not have access to the constant NAME_SIZE which is defined in main(), therefore the code will not compile. I suggest moving that constant out of main() and place it at the top, in the global scope.