 SmallTalk  Actor, C++    ,  
      - .  
,        ,    
  C++.         . 
      ,     14  15,     
  C++  ,        
 . 

    	 
    	 
    	  

        ,        
.          ! 
            
,    .  C++      
        
       . 

       

           
,   . , ,      
    ,    ,   
 .  ANSI     ,  : 

    struct TTime { 
      int year; 
      int month; 
      int day; 
      int hour; 
      int minute; 
   }; 

     TTime      .    TTime 
  (type)   ,      
  .         
  TTime  : 

   TTime appointment; 

    ,  C++     struct  TTime, 
  ANSI .         
   appointment    : 

    appointment.year = 1996; 
    appointment.month = 7; 
    appointment.day = 14; 
    appointment.hour = 8; 
    appointment.minute = 30; 

     ,    TTime, ,  
    ,   ,    
 ..      : 

    void Display(struct TTime *tp) 
    { 
    char buffer[32] ; 
    sprintf( buffer,   "Date: %02d/%02d/%04d Time: %02d:%02d\n",  tp->month,  
    tp->day,  tp->year,  tp->hour,  tp->minute ) ; 
    cout  buffer ; 
    } 

        ,       
Display()   appointment  TTime: 

    Display ( & appointment ) ; 

     " "  .    , ,  
,        .   
,  TTime,   - ,   
  ,        
,       . 
,          
  .       
 ,         
  .  ,       !  
        
    . 
    
    306	 III.   ANSI C++ 