< Previous | Contents | Next >
When the loop ends, the player has either won or quit, so it’s time to say goodbye.
{
cout << "\nThat’s it! You guessed it!\n";
}
cout << "\nThanks for playing.\n";
return 0;
}
If the player has guessed the word, I congratulate him or her. Finally, I thank the player for playing.