+ 1

Performance wise, which is better to use, /n or endl?

What is the difference between the two anyways?

11th Apr 2018, 2:24 PM
Matt Manuel
Matt Manuel - avatar
2 Respuestas
+ 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.
11th Apr 2018, 2:26 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 1
Thank you so much Jakob Marley!
11th Apr 2018, 2:29 PM
Matt Manuel
Matt Manuel - avatar