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

Programmer Humor

36678 readers
16 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] 10 points 2 months ago* (last edited 2 months ago) (1 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