this post was submitted on 05 Apr 2025
164 points (95.6% liked)

Programmer Humor

34850 readers
509 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
(page 2) 13 comments
sorted by: hot top controversial new old
[–] [email protected] -1 points 3 days ago (9 children)

If you write to a text (as opposed to binary) stream, \n produces \n or \r\n (or \r if old enough) depending on platform just fine.

Nobody should be using C++ anyway, but plenty of languages have silly system newline constants, which do nothing useful.

load more comments (9 replies)
load more comments
view more: ‹ prev next ›