The “Hello, World!” Example, in plain C++, without CORBA
// C++
#include <iostream.h>
class Hello
{
public:
void print(const char* s)
{
cout << s << endl;
}
};
main()
{
Hello* p = new Hello;
p -> print(“Hello World!”);
delete p;
}
Previous slide
Next slide
Back to first slide
View graphic version