Created
May 23, 2013 19:01
-
-
Save mbelicki/5638554 to your computer and use it in GitHub Desktop.
Bjarne Stroustrup has truly created the best obfuscation method ever.
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
#define private public | |
#include <iostream> | |
class Integer | |
{ | |
int _value; | |
private: | |
Integer(int value = 0) : _value(value) {}; | |
Integer operator+(const Integer&) const; | |
}; | |
Integer Integer::operator+ (const Integer& k) const | |
{ | |
std::cout << char(_value); | |
return Integer(_value + k._value); | |
} | |
int main(int argc, char **argv) | |
{ | |
Integer(104) + Integer(-7) + Integer(15) + Integer() | |
+ Integer(9) + Integer(-89) + Integer(66) + Integer(-53) | |
+ Integer(55) + Integer(-3) + Integer(24) + Integer(34); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment