Hey guys, I am very new to C++.
I created this console game sort of like Hangman type with little to no reference/help at all. But I have now been stuck for an hour trying to get it to work right but I admit defeat. It has a small bug that I cannot seem to find a solution for. :(
PROBLEM:
The hangman word answer is BOB.
When I play the game I enter the letter B. It should reveal B*B but it does not. It just reveal B** instead. I think it is to do with my loop but I just don't know how to get it to reveal right. Could someone please help? I have a feeling it is something simple but I am stuck.
You need a inner loop where you compare the letters with the guess. The outer loop is for the guess itself. Maybe you want to allow more guess than the number of letters.