Random number showing in console

I’m unsure when this started occurring, but I just started noticing it after changing to int32. However, I have the number 1 showing at the beginning of my introduction on the console.

Screenshot:
consoleintro

Code:

Hello,

After looking at your code, I believe it has to do with this piece of code (which is directly after the main() function:

std::cout << BCGame.GetCurrentTry();

The code displays (to the screen) the current try value.

It appears right after your main() function which would explain why it would show up before the rest of the game logic would happen. Since the code only only gets the current try from the object, you could comment this out unless you need a verification that the current try is a certain value.

You’re right! Thank you! I commented out that line and it no longer appears. Thanks again for your help.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms