-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
37 lines (32 loc) · 1.02 KB
/
Copy pathmain.cpp
File metadata and controls
37 lines (32 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//============================================================================
// Name : Employees_retake.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <iostream>
#include "Employee.h"
#include "Developer.h"
#include "Recruiter.h"
#include "Company.h"
using namespace std;
int main() {
Developer new_employee("Aliz");
new_employee.work(40);
cout << new_employee.get_status() << endl;
Company blue_bird("BlueBird", 10000);
try {
blue_bird.add_employee("Developer", "Joe");
blue_bird.add_employee("Recruiter", "Liza");
blue_bird.add_employee("Developer", "Anna");
blue_bird.add_employee("Manager", "Jesse");
}
catch (const char* m) {
cout << " <<< Recruitment process failed:" << m << " >>"<< endl;
}
blue_bird.add_revenue(2000);
blue_bird.add_worked_hours("Liza", 40);
cout << blue_bird.get_company_status();
return 0;
}