Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <list>
- #include <vector>
- #include "employee.h"
- using namespace std;
- class Company
- {
- public:
- Company* comp;
- void hire(Employee& emp, float putSalary);
- void fire(Employee& emp);
- void endOfMonth(Company& comp);
- Company(float);
- // static float moneyamount;
- private:
- static float budget;
- vector <Employee>* Employees;
- };
- void Company::endOfMonth(Company& comp)
- {
- for (iterat=0; iterat < Employees->size() ; iterat++)
- {
- cout << (*Employees)[iterat].fullName << endl;
- cout << (*Employees)[iterat].getSalary() << endl;
- comp.budget = comp.budget - (*Employees)[iterat].getSalary();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement