Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __DATE_H
- #define __DATE_H
- #include <fstream>
- #include <iostream>
- class Date
- {
- private:
- int day;
- int month;
- int year;
- bool isLeapYear(int year);
- int getMonthLength(int month, int year);
- public:
- Date(int _month, int _day, int _year);
- void setMonth(int _month);
- void setDay(int _day);
- void setYear(int _year);
- int getMonth();
- int getDay();
- int getYear();
- void print();
- friend std::ostream &operator<<(std::ostream &stream, Date &date);
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement