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
|
#include "manager.h"
#include <ctime>
int main()
{
std::cout.sync_with_stdio(false);/// optimizer. new
srand(time(nullptr));
std::vector<Task> To_do{std::string("Accounting"),std::string("Customer care"),
std::string("Drafting") ,std::string("IT support"),
std::string("Medical support"),std::string("Maintainance"),
std::string("Cleaning") ,std::string("Write press")
};
std::vector<employee> my_employees{employee("John",To_do),employee("Kylie",To_do),
employee("Jeson",To_do),employee("Bobby",To_do),
employee("Ashley",To_do),employee("kinsly",To_do),
employee("labrinth",To_do),employee("medley",To_do),
employee("Madison",To_do),employee("Mia",To_do),
employee("Sydney",To_do),employee("Bailey",To_do)
};
manager major("BIGMAN",4500.50,my_employees);
for(int i=0;i<1000000;i++)
{
major.monitor();
/// major.show();
}
major.show();
}
|