On Monday 10 February 2003 11:47 pm, you wrote:
Yes -- if this sucks so much, write a wrapper over your cout call that will always append a newline (endl) to your output. Do you know how operator overloading works? Do you know about streams in C++? Create your own thin-wrapper output stream with the << operator overloaded to append endl in each call. This is not essential but a good exercise for character building.
In short, GET A BOOK and LEARN C++!
[snip] Thanx. Yes writing a wrapper class would definitely do the trick. But isnt it unnatural to have to flush the buffer manually. Writing a wrapper will fix the problem, but can you tell me what the source of the problem is? Regards Sankha [snip]
-mj
Sankha Subhra Som wrote:
But isnt it unnatural to have to flush the buffer manually.
Yes, it's unnatural. Why does appending a newline to your output flush the buffer? What is this buffer anyway?!
This is not a C++ mailing list. And even if it were, you would get flamed for asking such basic questions. As I said, go and learn C++.
HTH; HAND (and DON'T respond to this)
-mj