Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- #include "Szemely.h"
- #include "Alkalmazott.h"
- #include "Manager.h"
- #include <vector>
- #include <algorithm>
- #include <iterator>
- using namespace std;
- void Manager::print(ostream& os) const
- {
- Alkalmazott::print(os);
- os<<" beosztottak szama: "<<this->beosztottakSzama();
- }
- void Manager::addAlkalmazott(Alkalmazott*uj)
- {
- beosztottak.push_back(uj);
- }
- void Manager::deleteAlkalmazott(Alkalmazott*a)
- {
- vector<Alkalmazott*>::iterator it=find(beosztottak.begin(),beosztottak.end(),a);
- beosztottak.erase(it);
- }
- int Manager::beosztottakSzama() const
- {
- return beosztottak.size();
- }
- Manager::Manager(string VezetekNev,string keresztNev,int szuletesiEv,string munkakor):
- Alkalmazott(VezetekNev,keresztNev,szuletesiEv,munkakor)
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement