daniels
By: a guest | Jan 18th, 2009 | Syntax:
C++ | Size: 0.68 KB | Hits: 71 | Expires: Never
#include <iostream>
using namespace std;
class HelloWorld
{
public:
HelloWorld() { cout << (char)0x48; }
HelloWorld* e() { cout << (char)0x65; return this; }
HelloWorld* l() { cout << (char)0x6C; return this; }
HelloWorld* o() { cout << (char)0x6F; return this; }
HelloWorld* W() { cout << (char)0x57; return this; }
HelloWorld* r() { cout << (char)0x72; return this; }
HelloWorld* d() { cout << (char)0x64; return this; }
};
HelloWorld* H() { return new HelloWorld(); }
int main()
{
delete H()->e()->l()->l()->o()->W()->o()->r()->l()->d();
cout << endl;
return 0;
}