home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_11_02 / 1102130b < prev    next >
Text File  |  1992-12-10  |  458b  |  28 lines

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