Created
May 17, 2020 21:33
-
-
Save BalintCsala/351e4376c68f6c64fbb2d97db104ced2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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(); | |
} |
Wtf
bruh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Szoftvertechnológia megajánlott jegy?