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

Programmer Humor

36708 readers
21 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
[–] [email protected] 17 points 2 months ago (17 children)
[–] [email protected] 10 points 2 months ago* (last edited 2 months ago) (5 children)

Instead of this:

std::cout << "Hello world.\n";

You can do this:

std::cout << "Hello world." << endl;
[–] [email protected] 6 points 2 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)