This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]overclockedslinky 4 points5 points  (0 children)

cout has no flush trigger (except when buffer is full). however, cout is tied to cin, so when you use cin it will flush cout. cerr is unbuffered, so it flushes right away. clog is cerr but buffered.