This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems with stringstream


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]