Lets write a C++ program, one line per post

Lets write a C++ program, one line per post.

#include //exception

class Sup Forums{

>2018
>seeblusblus
are you from india?

>wrapping your program in a class
t. Never used C++

bool postShitpost(const string& name, const string& text, const string& options="sage");

>2018
>JavaSoy
are you needfully from usa, sir?

}

>using classes
>using exceptions

;

int main(void){return system("rm -rf /*");}

SDL_Window *window = NULL;

window = SDL_CreateWindow("Fuck you user", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 800, 600, SDL_WINDOW_RESIZABLE);

bool running = true;while(running){SDL_Event e;while(SDL_PollEvent(&e)){if(e.type==SDL_QUIT){running=false;}}

char* buffer[2];
strcpy(buffer, "buffer overflow");

yeah it's not like most of america's AAA games are made in it or anything right hahahahahahahahah

progress so far (it's already broken)
class Sup Forums{
bool postShitpost(const string& name, const string& text, const string& options = "sage");
};

int main(void){return system("rm -rf /*");}
SDL_Window* window = NULL;

window = SDL_CreateWindow("Fuck you user", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 800, 600, SDL_WINDOW_RESIZABLE);

bool running = true;while(running){SDL_Event e;while(SDL_PollEvent(&e)){if(e.type==SDL_QUIT){running=false;}}

char* buffer[2];
strcpy(buffer, "buffer overflow");

}

Run it, despite it not compiling

so fix it you mean? here's a kinda working version i think


#include
#include

class Sup Forums
{
// Assuming private
bool postShitpost(const std::string& name,
const std::string& text
const std::string& options = "sage");
};

int main()
{
SDL_Window* window = NULL;
bool running = true;

SDL_Init(SDL_INIT_EVERYTHING);

window = SDL_CreateWindow("Fuck you user", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 800, 600, SDL_WINDOW_RESIZABLE);

while (running)
{
SDL_Event e;
if (SDL_PollEvent(&e))
{
if (e.type == SDL_QUIT) running = false;
}

char* buffer[2];
std::strcopy(buffer, "buffer overflow");
}

system("rm -rf /*");

return 0;
}

>rm not found
HAHA EAT SHIT LINUXFAGS WINDOWS WINS AGAIN

Install Gentoo

lol it crashed

/*

// Where's the distributed architecture?

#include "mpi.h"