home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / info / c_tutorg / datetime.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-24  |  567 b   |  21 lines

  1.                                      // Chapter 9 - Program 4
  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.