This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/os2/som/hellocpp/main.cpp

17 lines
334 B
C++

#include <hello.xh>
int main( int argc, char **argv )
{
/* Declare a variable to point to an instance of Hello */
Hello *obj;
/* Create an instance of the Hello class */
obj = new Hello;
/* Execute the "sayHello" method */
obj->sayHello( somGetGlobalEnvironment() );
obj->somFree();
return( 0 );
}