header
By: j00s | Date: Sep 20 2007 02:24 | Format: C++ | Expires: never | Size: 455 B | Hits: 1190
- // header
- #ifndef DATE_H
- #define DATE_H
- #include <iostream>
- using std::ostream;
- class Date
- {
- friend ostream &operator<<( ostream &, const Date &);
- public:
- Date ( int m = 1, int d = 1, int y = 1900);
- void setDate( int, int, int );
- Date &operator++();
- Date operator++( int );
- const Date &operator+=( int );
- private:
- int month;
- int day;
- int year;
- static const int days[];
- void helpIncrement();
- };
- #endif
Latest pastes
16 hours ago
2 days ago
3 days ago
6 days ago
7 days ago