Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3. #include "Szemely.h"
  4. #include "Alkalmazott.h"
  5. #include "Manager.h"
  6. #include <vector>
  7. #include <algorithm>
  8. #include <iterator>
  9. using namespace std;
  10.  
  11. void Manager::print(ostream& os) const
  12. {
  13. Alkalmazott::print(os);
  14. os<<" beosztottak szama: "<<this->beosztottakSzama();
  15. }
  16.  
  17. void Manager::addAlkalmazott(Alkalmazott*uj)
  18. {
  19. beosztottak.push_back(uj);
  20. }
  21.  
  22. void Manager::deleteAlkalmazott(Alkalmazott*a)
  23. {
  24. vector<Alkalmazott*>::iterator it=find(beosztottak.begin(),beosztottak.end(),a);
  25. beosztottak.erase(it);
  26. }
  27.  
  28. int Manager::beosztottakSzama() const
  29. {
  30. return beosztottak.size();
  31. }
  32.  
  33. Manager::Manager(string VezetekNev,string keresztNev,int szuletesiEv,string munkakor):
  34. Alkalmazott(VezetekNev,keresztNev,szuletesiEv,munkakor)
  35. {
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement