         TTime       
-   . (     
 .) 
         ,  Display(),    
 TTime    TTime,     . 
           ,    
  TTime.      
     .   ,  
  ,     TTime  
 .        ,  
  .  ,      
 .    :   
.  ,         
    ,    . 
          
    ,      
  .       ,  
     .  C++  
      ,   
         . 

        


            
    - 
    - 

                  . 13.1.  
                                         

              
.     ,      
  (. 13.1). 
       TTime      
  : 

    class TTime	{ 
    public:			//   
      int year ;		// - 
      int month ;		//             "             " 
      int day ;		//             "             "                                     
      int hour ;		//             "             "                                   
      int minute;		// 
      void Display(void) ;	// - 
    }; 
           TTime,   
,       class.  ,   
       ,     .  
    ,    public,  
    ,    
    .       
   private  protected.   public 
    ,   ,    
,     . 
    -      ,   -  . 
-,   year, month  day,   , 
, , ,   ..      
 . ,       
 auto, extern  register. 
    - , ,  Display()   . 
, -,  DisplayO  TTime,  
   - .     
  . 
      13.1   TTime    C++  
  -.     
      . 

     13.1.  CLASS. ( TTime) 

    1:	#include <iostream.h> 
    2:	#include <stdio.n> 
    3: 
    4:	class TTime { 
    5:	public: //   
    6:	  int year; // - 
    7:	  int month; // " " 
    8:	  int day; // " " 
    9: 	  int hour; // " " 
    10:	  int minute; // " " 
    11:	  void Display(void); // - 
    12:	}; 
    
    
     13.  	307(194) 