I've been playing and playing, but I can't get my program to loop quite correctly, I need getSize() to loop for as many characters are in 'string answer;' but not if int lives == 5. Any help, thank you!
Firstly, you are using too many global variables. They may be not be a big deal, but they tend to complicate your code and make your code harder to read.
Always find a way to use locals instead of globals. If you still can't avoid it, modify the names of globals the standard way so that people can distinguish between them and local variables much easier.
Welcome to Hangman!
The rules are simple!
You get five tries to guess the word.
Go!
WAIT! How could I forget? We need some players!
Enter the first players name: Player1
Enter the second players name: Player2
Give me a word: Blue
...
Then what do you think you expect the rest of the output to be?