The only way to start a c++ program
Might want to add a ifndef before your define
Where were you when C became Java??#include <stdio.h>
static void _ ();
int main (void) { _(); return 0;}
#define main _
#define public
#define String char*
static struct {
struct {
int (*println) (const char*);
} out;
} System = { .out = { .println = puts } };
public static void main (String args[]) {
System.out.println("Hello, world!");
}
>>57406925
This works better:class {
public:
class {
public:
void println(std::string s) {
std::cout << s << std::endl;
}
} out;
} System;
Kill yourselves.
#include <iostream>
using namespace std;
>>57408691
I'd prefer this myselfclass {
public:
void log(std::string s) {
std::cout << s << std::endl;
}
} console;
>>57409023
You first, shitlord.
MyClass::~MyClass()
{
delete *this;
}
>>57408120
Now do packages and inheritance