Additionally, here’s something to try out:
print something simple, like hello1 and hello2, right around where the print of bulls and cows takes place. More specifically, place:
std::cout << "hello1" << std::endl;
above
std::cout << "Bulls= " << BullCowCount.Bulls;
and
std::cout << "hello2" << std::endl;
below
std::cout << "Cows= " << BullCowCount.Cows;
in main.cpp.
This is to ensure that, when executing, your code there is at least being executed. If you see “hello1” and “hello2” being printed, you know that there’s some problem with your print statements. If you only see hello1 printed, then the code below it likely isn’t even being executed. If you see neither hello1 nor hello2, then execution might not be making it out of the function call
BCGame.SubmitValidGuess(Guess)
at all. If you see the last case, you might have an infinite loop or something weird going on within SubmitValidGuess