Bulls&Cows L16 code - Issues

Hi,

Below are my code examples for lesson 16. Needless to say, I’m very confused.
What happened was:

  1. Started from lesson 15
  2. Added comments, created string and CIN line
  3. Upon launching, the program would display an empty window (Screenshot 1)
  4. After getting input, all the cout lines would be displayed (screenshot 2)
  5. I’ve deleted CIN/String related lines, but it seems like they’re still there

Any comments would be greatly appreciated.

It seems like you had the BullCowGame.exe open when you tried to compile as you have a compilation error. So you are still runnng the old version of the program.

That makes sense, but unfortunately it doesn’t seem to be the case here. I’ve checked the possible solutions to LNK1168 error and they all point to software running in the background/not being closed properly. However, I’ve checked all the processes via task manager (used “details” tab as well) and nowhere does the application show up. I’ve closed every process regarding either windows console or VS itself, but nothing helps aside from restarting the PC.

Does seem strange, only possible thing I can think of right now is that you missed it when you were looking for it. Though you can kill it from the command prompt via

TaskKill /IM BullCowGame.exe

Privacy & Terms