// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
#include <iostream>

using namespace std;

class HelloWorld1
{
public:
    void put();
};

void HelloWorld1::put()
{
    cout << "HelloWorld1 in C++" << endl;
}

class HelloWorld2
{
public:
    void put();
};

void HelloWorld2::put()
{
    cout << "HelloWorld2 in C++" << endl;
}

class HelloWorld3
{
public:
    void put();
};

void HelloWorld3::put()
{
    cout << "HelloWorld3 in C++" << endl;
}

int main()
{
    HelloWorld1 *o1 = new HelloWorld1();
    o1->put();
    delete o1;
    HelloWorld2 *o2 = new HelloWorld2();
    o2->put();
    delete o2;
    HelloWorld3 *o3 = new HelloWorld3();
    o3->put();
    delete o3;
    return 0;
}
