Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The std::stream will translate '\n' to what's required for the underlying platform, so it is a perfectly portable way to terminate a line.

What std::endl really does is flush the internal stream buffer if any.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: