Skip to content

Instantly share code, notes, and snippets.

@BalintCsala
Created May 17, 2020 21:33
Show Gist options
  • Save BalintCsala/351e4376c68f6c64fbb2d97db104ced2 to your computer and use it in GitHub Desktop.
Save BalintCsala/351e4376c68f6c64fbb2d97db104ced2 to your computer and use it in GitHub Desktop.
#include <iostream>
#define XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#define X ;
#define Y class
#define Z {
#define R : public A {
#define X十 public:
#define Xー private:
#define HXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX };
#define 人
#define ノ
#define ヽ
#define ヽノ
#define ヽノヽ
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Y C Z
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Xー int c X
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
X十 C(int c) X
X十 void print() X
HXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ヽ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ヽ Y A Z
ヽ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ヽ Xー int a X
ヽ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ヽ X十 A(int a) X
ヽ X十 virtual void print() X
ヽ HXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ヽ 人
ヽ ノ
ヽ ノ
ヽ ノ
ヽ ノ
ヽ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ノ
ヽノヽ Y B R
ヽノ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Xー int b X
Xー C c; X
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
X十 B(int a, int b, int c) X
X十 void print() X
HXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
C::C(int c) : c(c) {}
A::A(int a) : a(a) {}
B::B(int a, int b, int c) : A(a), b(b), c(C(c)) {}
void C::print() {
std::cout << c << std::endl;
}
void A::print() {
std::cout << a << std::endl;
}
void B::print() {
A::print();
std::cout << b << std::endl;
c.print();
}
@GlavitsBalazs
Copy link

Szoftvertechnológia megajánlott jegy?

@Y0lan
Copy link

Y0lan commented Feb 25, 2021

Wtf

@novialriptide
Copy link

bruh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment