Srxon05

televizor.hpp

Nov 1st, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #ifndef STAGOD_H_INCLUDED
  2. #define STAGOD_H_INCLUDED
  3. #include <iostream>
  4. using namespace std;
  5. enum StanjeTelevizora {UKLJUCEN, ISKLJUCEN, POKVAREN};
  6. class Televizor
  7. {
  8. private:
  9.     int zvuk;
  10.     int kanal;
  11.     StanjeTelevizora stanje;
  12. public:
  13.     Televizor();
  14.  
  15.     bool ukljuci();
  16.  
  17.     bool iskljuci();
  18.  
  19.     bool pokvari();
  20.     bool popravi();
  21.  
  22.     bool pojacajZvuk();
  23.  
  24.     bool smanjiZvuk();
  25.  
  26.  
  27.     bool SledeciKanal();
  28.  
  29.     bool prethodniKanal();
  30.  
  31.     string getStanje()const;
  32.  
  33. int getZvuk()const;
  34.  
  35.     int getKanal() const;
  36.  
  37.  
  38. };
  39.  
  40.  
  41.  
  42.  
  43. #endif // STAGOD_HPP_INCLUDED
Add Comment
Please, Sign In to add comment