Skip to content

Instantly share code, notes, and snippets.

@mbelicki
Created May 23, 2013 19:01
Show Gist options
  • Save mbelicki/5638554 to your computer and use it in GitHub Desktop.
Save mbelicki/5638554 to your computer and use it in GitHub Desktop.
Bjarne Stroustrup has truly created the best obfuscation method ever.
#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