    ,  C++     struct  TTime, 
  ANSI . 


   ,        auto, extern  register. 


       TTime   . -,   
private ( 5)     -   6-10. 
    -    
   -.   :  (private) 
         ,  
   . 


        , -   
    ,    .     
  , protected,   14. 


             
     - .


        -, C++    
,     appointment.  -   
      this.  - 
  this,    ,   
-  .   13.5,   12, - 
ChangeTime()   this,     appointment. 
 ,   -    ,  
   .

    12:	    appointment.ChangeTime(30); 

       this       . 
,  21   13.4     : 

    m = this->month; 

    18:	//   -    
    19:	void TTime::GetTime(int &m, int &d,. int &y, int &hr, int &min) 
    20:	{ 
    21:	  m = month; //  - ,    
    22:	  d = day; 

   ,         this. 
 m = month;     month    ,  
  this. 


            
   ,      
,      . 


    today. Display();	

       ,    ,      

    cout  ctime(&today.dt); 

    ,        , 
 dt     TTime , ,   . 

     -     
inline    . 

    ,  inline   ,     
 ,    -  
    ,     .  
   -   ,  
    . 


     -         
 21.         -. 

        -,    
    . C++   
        . 

       -,    
,       (  
,    ). ,  , 
   ,       .  
    ,   ,   .   
    . 

    ,    . 

TIME6.H  TIME6.CPP ( 13.18  13.19),   ,  
           
.   13.21,   DOS  bcc destruc timeG 

.   TTime        
    ,     , 
   .  ,       

    TTime.     
  ,      .     
     ,     (   
).      (~),  

          , C++  
   ,   .    

 . ,       , 
           
 .   -  ,  
  -,   switch    
     . 

            
 main().        

       exit()  ,   ,  
     ,    
  ,    (  , 
   mainO),  .

    C++        .  

     

          ,    . 
     ,    ,  
      ,    new  
   delete. ,  ,  
  ,         
.  ,    ,   
      .   f(),   
 new     ,       
  .        
,    ,         . 

     rToday    today,     today. 
,         : 

    rToday.Display() ; 
    today. Display() ;

          ,    
       , ,  
       .   
       . 
                
  ,     . 


