Advertisement
NoName977

Data.h

Jan 21st, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1. #ifndef DATA_H
  2. #define DATA_H
  3. #include <iostream>
  4. using namespace std;
  5. class Data
  6. {
  7.     public:
  8.         Data();
  9.         Data(int d, int m, int r);
  10.         ~Data();
  11.         void Ustaw(int d, int m, int r);
  12.         int Dzien() const;
  13.         int Miesiac() const;
  14.         int Rok() const;
  15.         void Wypisz() const;
  16.         void Wpisz();
  17.         void Koryguj();
  18.         int Porownaj(const Data & wzor) const;
  19.         friend istream &operator >>(istream &we, Data &d);
  20.         friend ostream &operator << (ostream &wy, const Data &d);
  21.     protected:
  22.  
  23.     private:
  24.         int m_nDzien;
  25.         int m_nMiesiac;
  26.         int m_nRok;
  27. };
  28.  
  29. #endif // DATA_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement