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