Page 1 of 1

obfuscate this code

PostPosted: Tue Jan 27, 2015 11:11 am
by pretentious
Let's see how this goes. The idea is to make this code unreadable without changing its end functionality.
Each reply should add something to the previous ETC. We're using C++.

Original code:
Code: Select all
#include <iostream>
int main(){
    std::cout << "hello, world";
    return 0;
}


I'll go first
Code: Select all
#include <iostream>
#define water int
water main(){
    std::cout << "hello, world";
    return 0;
}

Re: obfuscate this code

PostPosted: Tue Jan 27, 2015 12:43 pm
by ghost107
Code: Select all
#include <iostream>
#define water int
#define is ::
water main(){
   std is cout << "hello, world";
   return 0;
}

Re: obfuscate this code

PostPosted: Wed Jan 28, 2015 7:54 am
by pretentious
Code: Select all
#include <iostream>
#include <stdio.h>
#define water int
#define is ::
namespace std{
class marshmallows{
public:
     void operator<<(water spring){
        printf("hello, world");
    }
};
}
water main(){
   std is marshmallows yummi;
   yummi << 42;
   return 0;
}