00001 #ifndef DATE_H
00002 #define DATE_H
00003
00004 #include <iostream>
00005 #include <string>
00006
00007 using namespace std;
00008
00016 class Date
00017 {
00018
00019 friend ostream &operator<<( ostream &out, const Date &date );
00020 friend istream &operator>>( istream &in, Date &date );
00021
00022 public:
00023 Date();
00024 Date( int mm, int dd, int yy );
00025 void setDate( int mm, int dd, int yy );
00026 void input( istream &in );
00027 void output( ostream &out ) const;
00028 bool before( const Date &date ) const;
00029 bool equal( const Date &date ) const;
00030 bool after( const Date &date ) const;
00031
00032 private:
00034 int mm;
00036 int dd;
00038 int yy;
00039
00040 };
00041
00042 #endif