3 ms·
> Oh, it's basically just a newline. What's wrong with just "\n"? Not all platforms use “\n” for a new line.
by chrisseaton 9y ago
> Oh, it's basically just a newline. What's wrong with just "\n"?
Not all platforms use “\n” for a new line.
- deleted 9y ago[deleted]
- gpderetta 9y agoThe 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.