Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef HIRURG_HPP_INCLUDED
- #define HIRURG_HPP_INCLUDED
- #include "lekar.hpp"
- enum SPECIJALNOST{OPSTA,KARDIO,NEURO};
- class Hirurg : public Lekar{
- private:
- SPECIJALNOST spec;
- public:
- Hirurg() : Lekar(),spec(){}
- Hirurg(const DinString &ds1,const DinString &ds2,const DinString &ds3,int bl,SPECIJALNOST sp) : Lekar(ds1,ds2,ds3,bl), spec(sp) {}
- Hirurg(const Hirurg &h1) : Lekar((Lekar)h1),spec(h1.spec) {}
- void ispis() const {
- Lekar::ispis();
- cout<<"Specijalizacija"<<endl;
- switch(spec){
- case OPSTA : cout<<"OPSTA"<<endl;
- break;
- case KARDIO : cout<<"KARDIO"<<endl;
- break;
- case NEURO : cout<<"NEURO"<<endl;
- break;
- }
- }
- };
- #endif // HIRURG_HPP_INCLUDED
Add Comment
Please, Sign In to add comment