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