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/cppexamp/rtti/main.cpp

26 lines
508 B
C++

//
// Main module of the application.
//
#include "impl.h"
#include "user.h"
#include <iostream>
company ACME;
int main( void )
{
ACME.addManager ( "Bill", 40, 15 );
ACME.addProgrammer( "Bob", 25, 35 );
ACME.addProgrammer( "Julie", 30, 35 );
ACME.addOvertime( "Bob", 10 );
if( ACME.payRoll() == 4300 ) {
std::cout << "\nTest Successful." << std::endl;
return( 0 );
} else {
std::cout << "\nTest Failed." << std::endl;
return( 1 );
}
}