I don't know what's wrong

Hey guys I finished this lecture and when I reached the end and debugged it, it stopped working the way it was suppose to, I had a linker error near the end of the lecture when the do while loop was added to GetValidGuess() but after restarting visual studio the error didn’t appear anymore.

Expected Behavior:
I expected the code to work correctly like it did in the lecture.

Observed Behavior:
The wrong numbers of bulls and cows being shown.
Sometimes it prints random bits of code that has been written.

BullCowGame.zip (3.9 MB)
That’s the zip with the project inside.

if (Guess[MHWChar] == MyHiddenWord[GChar])

not

if (Guess[MHWChar] == MyHiddenWord[MHWChar])

This was an intentional bug that was fixed a couple lectures ago.

Don’t know what you mean about the linker error.

Thanks for the help! Sorry for the late reply, I was asleep. XD

Privacy & Terms