Archived

This forum has been archived. Please start a new discussion on GitHub.

something wrong about cout

when I debug the server-side application, I should show some message on dos screen by cout<< . but there is a puzzle thing.
sometime, the server stop before print a message on dos screen by cout<< , until I do some key down in the dos screen.
anybody can give me any advice? thanks.

Comments

  • bernard
    bernard Jupiter, FL
    This is really a C++ question ... do you flush with (<< flush or << endl) this cout that only appears later?

    Cheers,
    Bernard
  • thanks your suggestion. yeah, I flush it with endl ervery time, but nothing goes right, is there nothing could be done now?