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 operator<( const Date &date ) const;
00029 bool operator>( const Date &date ) const;
00030
00031 private:
00033 int mm;
00035 int dd;
00037 int yy;
00038
00039 };
00040
00041 #endif