Hello there, I am almost done with my basic C++ Course and about to move on but for some reason, the else statement does not compile when I run the game in the terminal. I have removed the if statement code and re-written the code just in case I missed anything but still the same result. Any ideas on how to fix it? No matter what answer I enter it will always display the winning message.
Never mind I didn’t realize the GuessSum was calling different variables it’s been fixed.
For clarity the fix was to use GuessA
et al. instead of CodeA
for calculating the GuessSum and GuessProduct.
1 Like
Finished the game now it’s now working as intended, I am now moving on to UE4 bulls and cows.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.