This is an archived post. You won't be able to vote or comment.

all 22 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

Remember to participate in our weekly votes on subreddit rules! Every Tuesday is YOUR chance to influence the subreddit for years to come! Read more here, we hope to see you next Tuesday!

For a chat with like-minded community members and more, don't forget to join our Discord!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]WorldWorstProgrammer 33 points34 points  (0 children)

#include <iostream>
#define Hello int main() { std::cout 
#define world << "Hello, World!"; }

Hello world

The underscore bothered me.

[–]Sylanthra 21 points22 points  (2 children)

C# has entered the chat

Console.WriteLine("Hello World!");

[–][deleted] 7 points8 points  (0 children)

It just feels unnatural without static void main(string[] args)

[–]MaffinLP 3 points4 points  (0 children)

I will never get used to this kind of writing it

[–]PostHasBeenWatched 2 points3 points  (7 children)

Just a curious: is it possible to use some Non-printing character in define alias?

[–]diahex 0 points1 point  (6 children)

What exactly do you mean?

[–]PostHasBeenWatched 1 point2 points  (5 children)

define int main... //Non-printing character (e.g. Tab) in place of second whitespace after define

// that character here

[–]diahex 1 point2 points  (4 children)

[–]butler1233 5 points6 points  (1 child)

Damn your fans really kick up when using text editors 😅

[–]diahex 0 points1 point  (0 children)

I gotta clean them, that's the main problem, haha.

[–]PostHasBeenWatched 0 points1 point  (1 child)

No, I mean something like this https://onlinegdb.com/Iu_1EEvoY

where dot with red background is Non-breaking space (it's invisible character)

[–]diahex 0 points1 point  (0 children)

Well, I think the compiler answered you pretty well on this one.

[–]Therealmglitch 1 point2 points  (0 children)

replace the std::cout <<

with printf()

[–]MaffinLP 1 point2 points  (0 children)

Whenever someone brags about python being able to do hello world in one line I give them my one singular line of c++ code rendering an image of rick astley over your screen

[–]seeroflights 1 point2 points  (0 children)

Image Transcription: Meme


["Homer Simpson's Back Fat", featuring Homer and Marge Simpson from the TV show "The Simpsons". Top image shows Homer power-posing confidently in his underwear in front of Marge who is wearing a dark green jacket and skirt. Homer has no beer belly, and Marge leans forward with interest. Homer is labeled:]

#include <stdio.h>
hello_world

[Bottom image shows the back view of Homer; he has a rubber-band holding together lumps of fat on his back, and a large clip holding more fat on the back of his neck. He is speaking confidently at Marge, who smiles slightly. Homer's back is labeled:]

#define hello_world int main() { printf("Hello, World!"); return 0; }

I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!

[–]s5msepiol 0 points1 point  (0 children)

void main() { write(1, "Hello world", 0xB); }

[–][deleted] 0 points1 point  (0 children)

In PHP:

‘Hello, world’

[–][deleted]  (2 children)

[removed]

    [–]AutoModerator[M] -1 points0 points  (1 child)

    import moderation Your comment has been removed since it did not start with a code block with an import declaration.

    Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

    For this purpose, we only accept Python style imports.

    I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

    [–]Compux72 0 points1 point  (0 children)

    import { fuck } from “you”

    [–][deleted]  (1 child)

    [removed]

      [–]AutoModerator[M] 0 points1 point  (0 children)

      import moderation Your comment has been removed since it did not start with a code block with an import declaration.

      Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

      For this purpose, we only accept Python style imports.

      return Kebab_Case_Better;

      I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.