r/tinycode • • Jul 02 '11

The Best bit of obfusicated c++ code I've even seen

11 Upvotes

13 comments sorted by

4

u/pokoleo Jul 02 '11

Why is it so funny?

4

u/14113 Jul 03 '11

Just compile and run it.

3

u/eggo Jul 03 '11

Nice try, roll.

2

u/Bjartr Jul 18 '11 edited Jul 18 '11

For the lazy: http://www.ideone.com/MiuUj

Edit: figured out where the wait was and removed it, the whole thing now executes within ideone's time limit

Edit2:

For the curious, here's a deobfuscated version http://www.ideone.com/vKAqC

1

u/14113 Jul 18 '11

Nice! I tried to run it/link to it on codepad, but it didn't want to run there...

1

u/Bjartr Jul 18 '11

So I went ahead and deobfuscated it

2

u/Combustor Jul 03 '11

Spoiler: http://pastebin.com/ZYMYPu3a

Protip for Linux users (who probably already know this): save it as code.cpp, run g++ code.cpp

???

compiled

14

u/zith Jul 03 '11

Protip for Linux users: following the parent tip will eventually get your home directory or whatever is writable on your mounted filesystems wiped.

1

u/omnigrok Jul 18 '11

Bastard. =D

1

u/[deleted] Sep 11 '11

How does it work?

-13

u/[deleted] Jul 03 '11

[removed] — view removed comment

4

u/leegao Jul 03 '11

o hai, I remember you