main.cpp
#include <iostream>
class a_hello_t
:
{
public:
:
base_type_t( env )
{}
virtual ~a_hello_t()
{}
virtual void
{
std::cout << "Hello, world! This is SObjectizer v.5."
<< std::endl;
}
virtual void
{
std::cout << "Bye! This was SObjectizer v.5."
<< std::endl;
}
};
void
{
coop->add_agent(
new a_hello_t( env ) ) );
}
int
main( int, char ** )
{
try
{
}
catch( const std::exception & ex )
{
std::cerr << "Error: " << ex.what() << std::endl;
return 1;
}
return 0;
}