    67:	year = ds.da_year; 
    68:	month = ds.da_mon; 
    69:	day = ds.da_day; 
    70:	hour = ts.ti_hour; 
    71:	minute = ts.ti min; 
    72:	} 

      ,   TIME.CPP   TTime,  
   13.5   ,    
     . (   , 
          .)  
   DOS  bcc appointl timel, ,     
   TIME1,  bcc appointl timel.obj.

     

      APPOINT.CPP   ,  
    1. ,    
,     DOS.  WINDOWS   
     APPOINT1.IDE    
Project\Open project...       
(APPOINT.CPP),   (TIME1.CPP)    East/Win  
APPOINT1.EXE         .  
    <Ctrl+F9>    , 
          
   .     ,  
     TIME1  DOS   EasyWin Windows, 
   Project\Build All.    
 local options  APPOINT1.EXE (      
),         
Borland C++.    ,    
     2. 

     13.5. APPOINT1.CPP (   ) 

    1:	#include <iostream.h> 
    2:	#include <stdio.h> 
    3:	#include "time1.h" 
    4: 
    5:	main() 
    6:	{ 
    7:	  TTime appointment; 
    8: 
    9:	  appointment,SetTime(7, 21, 1996, 8, 30); 
    10:	  for (int slots = 1; slots <= 17; slots++) { 
    11:	    appointment,Display(); 
    12:	    appointment.ChangeTime(30); 
    13:	  } 
    14:	  return 0; 
    15:	}

      3  TIME1.H,      
TTime  .   7    appointment  
TTime.   9  appointment     
,     for      
 30 .   12  - ChangeTime()   30 
      appointment.      
-     appointment. 
    ,   ,    TTime,   
1. ( 13.4),    - . -  
     .  -  
GetSTime() ( 39-48),         
 TTime,  ChangeTime() ( 51-72),    
       . 
       -  TTime::    
    TTime. - GetSTime()  sprintf() 
( 44)      - month, day, 
year, hour  minute,    .   
 46  strdup()        
     .   47  
  ,         free(). 
    - ChangeTime()      dostounixO  
unixtodosO           
  .      
    
     13.  	313 