 65      ,  
-     nminutes.    
( 13.5,  12)   appointment.ChangeTime(30);  
- ChangeTime()       appointment  30 . 
        -, C++    
,     appointment.  -   
      this.  - 
  this,    ,   
-  .   13.5,   12, - 
ChangeTime()   this,     appointment. 
 ,   -    ,  
   .
       this       . 
,  21   13.4     : 

    m = this->month; 

      ,      m 
 month    ,  this. ,  
       this.  
    m = month;     month    ,  
  this. 

      - 

             
     .   ,  
           (, 1 
 1970   DOS)       
 ,        . 
    - ChangeTime()   13.4  -   
    (timemsecs),       
    . ,   ,  
         . 
      13.6  13.7        
 TTime.  TIME2.H     TIME2.CPP   
 .        
  ,  APPOINT2.CPP,     mainO. 
     DOS,   bcc 
appoint2 time2.       
APPOINT2.EXE,   .       
         : 

    	- appoint2 
    bcc	- time2 
    	appoints.obj time2.obj 

     ,      "   "  
   C++.       
APPOINT2   ,    APPOINT2.IDE  
 <Ctrl+F9>,       APPOINT1.    
Project\Build all     (,   
  TIME2  DOS,       Windows). 

     13.6.  TIME2.H (  TTime) 

    1:    // time2.h --   TTime 
    2: 
    3:    #ifndef __TIME2_H 
    4:    #define _TIME2 H 1 //   include 
    5: 
    6:  class TTime { 
    7:  private: 
    8:     long dt; //    -    1  1970  
    9:  public: 
  10 :   void Display(void); 
  11:    void GetTime(int &m, int &d, int &y, int &hr, int &min); 
  12:    void SetTime(int m, int d, int y, int hr, int min); 
  13:    char *GetSTime(void); 
  14:    void ChangeTime(long nminutes); 
  15:  } ; 
  16: 
  17: #endif // __TIHE2_H
______________________________________________________ 
    
    
    314 201	 III.   ANSI C++ 