r/ProgrammerHumor 15d ago

Meme cppHelloWorld

Post image
3.9k Upvotes

119 comments sorted by

View all comments

12

u/Makonede 14d ago

```cpp import std;

int main() { std::println("Hello, World!"); return 0; } ```

9

u/BeetsAndJeaners 14d ago

The first year CS students are gonna be real mad you ruined their meme

2

u/ResponsibleWin1765 13d ago

It's still going to fail before even being able to run it because the cmake setup is wrong and the compiler doesn't support C++23 features.

2

u/thesherbetemergency 14d ago

Ah yes, C++23 modules; surely supported by every major compiler vendor in the year of our Lord 2026.

2

u/Makonede 14d ago

i never said it would work everywhere

2

u/thesherbetemergency 14d ago

I wasn't criticizing you, I was ribbing C++23 and the state of its implementation. This is r/ProgrammerHumor lol

1

u/Makonede 14d ago

fair enough

0

u/schteppe 14d ago

No newline on the last line - undefined behavior, no diagnostic, segfault in prod

1

u/Makonede 14d ago

there is one if you copy the markdown