+ 1
What's the difference between endl and \n
2 ответов
+ 11
endl flushes the output stream, while \n is simply a newline character.
+ 4
Functionality wise, nothing. One you use inside of the string, the other outside of it.
Forgot about the flush call. Aside from pushing \n, endl also flushes. Hatsy right about that part.