12-03-2009, 02:28 PM
The difference between using std::endl and "\n" to end a line is that std::endl will also flush the buffer to the screen (ie, is the same as doing << "\n" << std::flush();). Useful if you want to make sure the user will always see what you are pushing into the buffer when you end the line.
The little boat gently drifted across the pond exactly the way a bowling ball wouldn't.