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

Programmer Humor

35284 readers
142 users here now

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

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] unlawfulbooger@lemmy.blahaj.zone 17 points 2 weeks ago (17 children)
[–] hellfire103@lemmy.ca 10 points 2 weeks ago* (last edited 2 weeks ago) (5 children)

Instead of this:

cout << "Hello world.\n";

You can do this:

cout << "Hello world." << endl;
[–] Daedskin@lemm.ee 6 points 2 weeks ago

The fact that you used the namespace for cout but not for endl inordinately bothers me

load more comments (4 replies)
load more comments (15 replies)