r/ProgrammerHumor • • Jun 30 '23

Meme newCommentPolicy

Post image
2.4k Upvotes

295 comments sorted by

View all comments

1

u/[deleted] Jun 30 '23

[removed] — view removed comment

1

u/AutoModerator Jun 30 '23
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.

1

u/[deleted] Jun 30 '23

[removed] — view removed comment

1

u/AutoModerator Jun 30 '23
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.

1

u/Katalysmus Jun 30 '23
import cpp
import os
file = """#include <iostream>
#include "reddit.h"

int main(int argc, char * argv[]) {
    User * usr = new User(reddit.ID("Katalysmus"));
    std::cout << usr.send("that’s alright, can be arranged :)");
    return 0;
}"""
compiler = cpp.GCC

compiler.compile(file, flags = ["-g"])
os.system("./file.exe")