            appointment 
  -. ,   22  , 
      appointment  14  1996 , 8:30: 

    appointment.SetTime(7,   14,   1996,  8,  30); 

    ,   25   GetTimeO   
 - appointment   ,   
 20.      SetTime()    1 
 hour,    appointment  . (,  
      ,      .) 

     - 

          ,   
        
  .     
 TTime          
   . 
      13.3    TTime,     
CLASS2.CPP,     -.   ,  
    -. 
      ,    ,  
    .     ,  
       ,  
   . 
         , TIME1.H   ,   
      .    
( 13.4  13.5)    ,  , 
  ,   .    
  ,       . 

     13.3. TIME1.H (  TTime   ) 

    1:	// timel.h --   TTime 
    2: 
    3:	#ifndef __TIME1_H 
    4:	#define _TIME1_H 1 //   #include 
    5: 
    6:	class TTime { 
    7:	private: 
    8:	  int month; 
    9:	  int day; 
    10:	  int year; 
    11:	  int hour; 
    12:	  int minute; 
    13:	public: 
    14:	  void Display(void); 
    15:	  void GetTime(int &m,  int &d,  int &y,, int &hr,  int tain); 
    16:	  void SetTime(int m,   int d,   int y,   int hr,   int min); 
    17:	  char *GetSTime(void);                                                  
    18:	  void ChangeTime(long nminutes); 
    19:	}; 
    20: 
    21:	#endif // __TIME1_H 

     3, 4  21    TIME1.H     
    . (      11.2 
 11.)   TTime      
    . 
      13.4  -  TTime.  
        . 
        , 
  .,    -    
,  ,..      DOS  
  - timel.c.        
   TIME.CPP,  TargetExpert  EasyWin   <Alt+F9>. 

     

     TIME1.CPP      <    
 main () ).    TIME1.CPP    
TIME1.OBJ,   ,     ,   
   ,  main(). TIME1.CPP   

     13.                                              311
