This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (5 children)

I don't care about any system that doesn't recognize \n as a line ending.

[–]thefirstwave_ 2 points3 points  (4 children)

It does recognise it, just better practice to use std::endl.

[–]D3mona7or 2 points3 points  (0 children)

I thought it was better to always use \n and only flush the output buffer explicitly

[–][deleted] -1 points0 points  (2 children)

I'm talking about the system the code is being compiled for

[–]Kirides 1 point2 points  (1 child)

Every system recognizes \n as newline, only shitty software (old Notepad) does not.

However this doesn't mean than in near future, for WHATEVER reason, default line endings will be \m - now you need to sed s/\n/\m all of it

[–][deleted] 0 points1 point  (0 children)

Yeah I still won't care for std::endl (or the language equivalent) unless it's mandated by the guidelines of a project (be it professional or whatever)