+ 1
Performance wise, which is better to use, /n or endl?
What is the difference between the two anyways?
2 ответов
+ 3
\n - New Line that doesn't flush the buffer
endl - New Line that DOES flush the buffer.
It helps prevent excessive writes by storing it in the buffer until it's flushed.
+ 1
Thank you so much Jakob Marley!