Problems with stringstream

bjorn rohde jensen bjensen@fastmail.fm
Fri Oct 25 09:58:00 GMT 2002


Hi guys,

  Input and output on unix systems are buffered.
std::cerr is usually line buffered, std::cout
is line buffered, when directed to a terminal
and block buffered, when connected to a file.
  In case of line buffered output, you dont see
any, unless you flush it, or write a newline
character to the stream, which causes the buffer
to be flushed.

Yours sincerely,

Bjorn



More information about the Gcc-help mailing list