home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_11_03 / 1103094a < prev    next >
Text File  |  1993-01-05  |  484b  |  28 lines

  1. // date4.h
  2.  
  3. class Date
  4. {
  5.     int month;
  6.     int day;
  7.     int year;
  8.  
  9. public:
  10.     // Constructors
  11.     Date()
  12.       {month = day = year = 0;}    
  13.     Date(int m, int d, int y)
  14.       {month = m; day = d; year = y;}
  15.  
  16.     // Accessor Functions
  17.     int get_month() const
  18.       {return month;}
  19.     int get_day() const
  20.       {return day;}
  21.     int get_year() const
  22.       {return year;}
  23.  
  24.     Date * interval(const Date&) const;
  25.     int compare(const Date&) const;
  26. };
  27.  
  28.