Guest
Public paste!

daniels

By: a guest | Jan 18th, 2009 | Syntax: C++ | Size: 0.68 KB | Hits: 71 | Expires: Never
Copy text to clipboard
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class HelloWorld
  5. {
  6.         public:
  7.         HelloWorld()    { cout << (char)0x48;              }
  8.         HelloWorld* e() { cout << (char)0x65; return this; }
  9.         HelloWorld* l() { cout << (char)0x6C; return this; }
  10.         HelloWorld* o() { cout << (char)0x6F; return this; }
  11.         HelloWorld* W() { cout << (char)0x57; return this; }
  12.         HelloWorld* r() { cout << (char)0x72; return this; }
  13.         HelloWorld* d() { cout << (char)0x64; return this; }
  14. };
  15.  
  16. HelloWorld* H() { return new HelloWorld(); }
  17.  
  18. int main()
  19. {
  20.         delete H()->e()->l()->l()->o()->W()->o()->r()->l()->d();
  21.         cout << endl;
  22.         return 0;
  23. }