? / professional-program-01-EmployeeDB-DatabaseTest.c
// DatabaseTest.cpp include <iostream> include <Database.h> using namespace std; using namespace Records; /* int main(int argc, char** argv) { Database myDB; Employee& emp1 = myDB.addEmployee("Greg", "Wallis"); emp1.fire(); Employee& emp2 = myDB.addEmployee("Scott", "Kleper"); emp2.setSalary(100000); Employee& emp3 = myDB.addEmployee("Nick", "Solter"); emp3.setSalary(10000); emp3.promote(); cout << "all employees: " << endl; cout << endl; myDB.displayAll(); cout << endl; cout << "current employees: " << endl; cout << endl; myDB.displayCurrent(); cout << endl; cout << "former employees: " << endl; cout << endl; myDB.displayFormer(); } */
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.