Okay, so the buffering type explanation makes sense. I guess that different distributions might have different defaults for in/out/err, which are set in some other location (the kernel? libc?). Stderr on my system exhibited the same behavior as stdout (line buffering).
I also found you can flush the stream with a manipulator, as in
which kind of takes care of my concern about writing too much code to do a simple thing.Qt Code:
out << "Answer: " << flush;To copy to clipboard, switch view to plain text mode
Bookmarks