#ifndef NALOGA0201_DATE_H #define NALOGA0201_DATE_H #include class Date { friend std::ostream &operator<<(std::ostream &out, const Date &date); private: unsigned int day, month, year; int months[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; public: Date() = default; Date(unsigned int day, unsigned int month, unsigned int year); ~Date() = default; std::string toString() const; bool operator==(const Date &other) const; Date& operator++();//prefix ++a Date operator++(int dummy);//postfix a++ Date operator+(int day); }; #endif //NALOGA0201_DATE_H