[ create a new paste ] login | about

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

C++, pasted on Oct 19:
#include <cstdlib>
#include <iostream>

static void inspector()
{
    std::cout << "Shut up!\n";
}

static class palin {
public:
    palin()
    {
        std::cout << "*smack* WAAAH!\n";
    }

    ~palin()
    {
        std::cout << "Flying main of the Yard?!\n";
        std::atexit(inspector);
    }
} object;

int main()
{
    std::cout << "Hold it! Hold it! Allow me to introduce myself; I'm "
              << "Inspector main of the Programme Planning Police, Light "
              << "Entertainment Division, Special Flying Squad!\n";
    return 0;
}


Output:
1
2
3
4
*smack* WAAAH!
Hold it! Hold it! Allow me to introduce myself; I'm Inspector main of the Programme Planning Police, Light Entertainment Division, Special Flying Squad!
Flying main of the Yard?!
Shut up!


Create a new paste based on this one


Comments: