Thread: Help
View Single Post
Old Apr 5th, 2006, 10:56 AM   #11
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
Quote:
Originally Posted by Xyhm
I've had problems with printf writing to the screen and not flushing afterwards. As for '\n', I've read somewhere that it makes flushing in these cases unnecessary, but I don't know why and it may very well not be true.
Like I said, it's true for std::endl, not for a newline character ('\n'). Strange that you had problems with that. Must have been something else. Or like DaWei said, mixing printf with cout.

@David: Thanx for clearing that up for me.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote