[ create a new paste ] login | about

Link: http://codepad.org/1RlGSUk8    [ raw code | output | fork ]

C++, pasted on Sep 6:
1
2
3
4
5
#include <iostream>
struct World{World(){std::cout<<"Hello World."<< std::endl; }};
struct Hello:World{Hello():World(){}};

int main(void){ Hello World; }


Output:
1
Hello World.


Create a new paste based on this one


Comments: