home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / tutorial / cpptutor / source / datetime.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-15  |  569 b   |  21 lines

  1.                                 // Chapter 9 - Program 4 - DATETIME.H
  2. #ifndef DATETIME_H
  3. #define DATETIME_H
  4.  
  5. #include "newdate.h"
  6. #include "time.h"
  7.  
  8. class datetime : public new_date, public time_of_day {
  9.  
  10. public:
  11.  
  12.    datetime(void) { };          // Default to todays date and time
  13.    datetime(int M, int D, int Y, int H, int Mn, int S) :
  14.                     new_date(),              // Member initializer
  15.                     time_of_day(H, Mn, S)    // Member initializer
  16.                     { set_date(M, D, Y); };  // Constructor body
  17.  
  18. };
  19.  
  20. #endif
  21.