asdf wrote:
is it true or not ?
Could you do this newsgroup and your boss a major favor? Buy a name-brand
C++ book, such as /The C++ Language, 3rd ed/ by Stroustrup, take it home,
and just sit around reading it for a while.
I promise it won't be as painful as, say, an OMG specification. And your
velocity with your boss and with this group would then be much faster. You
are currently just muddling your way through.
In this specific case, endl inserts a "\n" into the output stream, and
then it flushes that stream, so its buffered data will at least go
outside the current process. OSs typically respond by printing such data
to a console.
Did that help? Or are you reading code where someone used endl while
writing to a file, where flushes behave different?
--
Phlip