0

What is the difference between "endl" and " /n"

difference

22nd Jan 2017, 6:55 AM
Yulanda Chung
Yulanda Chung - avatar
2 Respostas
+ 4
Use std::endl when the system/program is unstable since it reload/refresh output buffers. Use \n for other cases.
22nd Jan 2017, 7:00 AM
Wen Qin
Wen Qin - avatar
+ 1
By the way, it needs a backwards slash(\), not a forward slash (/). I had to get another keyboard on my tablet just to be able to use it.
25th Jan 2017, 3:54 PM
Jeremie
Jeremie - avatar