this post was submitted on 05 Apr 2025
168 points (95.2% liked)

Programmer Humor

37051 readers
262 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 3 months ago (17 children)
[–] hellfire103@lemmy.ca 10 points 3 months ago* (last edited 3 months ago) (5 children)

Instead of this:

cout << "Hello world.\n";

You can do this:

cout << "Hello world." << endl;
[–] Daedskin@lemm.ee 6 points 3 months 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)