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.
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.
0
Comments
-
This is really a C++ question ... do you flush with (<< flush or << endl) this cout that only appears later?
Cheers,
Bernard0 -
thanks your suggestion. yeah, I flush it with endl ervery time, but nothing goes right, is there nothing could be done now?0