    16:         hr = ts.ti_hourr;  
    17:	min = ts.ti_min;
    18:         }
    19:
    20:      //   dt                                      
    21:      void TTime::SetTime(int m,  int d,  int y,~ int hr,  int min) 
    22:      {
    23:	struct date ds; 
    24:	struct time ts;                  
    25:
    26:	getdate(Sds);  //      
    27:	gettirae(&ts); 
    28:	if ( >= 0) ds.da_year = ; 
    29:	if (m >= 0) ds.da_mon = m; 
    30:	if (d >= 0) ds.da_day = d; 
    31:	if (hr >= 0) ts.ti_hour = hr; 
    32:	if (min >= 0) ts.tijnin = min; 
    33:	ts.ti_sec = 0; 
    34:	ts.ti_hund = 0; 
    35:	dt = dostounix(&ds,  &ts); 
    36:	} 
    
     13.17.  DEFAULT.CPP (  -  ) 

    1:	#include <iostream.h>               
    2:	#include <stdio.h>     
    3:	#include "times. h"	
    4:		
    5: 
    6:	main()          
    7: 
    8.	TTime appointment;   
    9:	appointment . SetTime( ) ; 
    10:	appointment . Display ( ) ; 
    11:	appointment. SetTime(8);	
    12:	appointment . Display ( ) ;	
    13:	appointment. SetTime( 8, 1); 
    14:	appointment. Display( ) ; 
    15:	appointment. SetTime(8, 1, 1996); 
    16:	appointment . Display( ) ; 
    17:	appointment. SetTime(8, 1, 1996, 8); 
    18:	appointment. Display( );	
    19:	appointment. SetTiue(8, 1. 1996, 8,. 30);	
    20:	appointment . Display ( ) ;	
    21:	return 0;	
    22:	} 


       


             . 
     TTime. 	

    TTime anyTime ;    
    
   anyTime  TTime,     
-.      ,  

   anyTime.Display(); 

     ,   ,    . 
             
     ,    
  ,    
.       (  ) , 
         . 
      -,    
    . C++   
        . 
      13.18      TTime.   
         TTime. 
          TTime,  
  .    .     . 

    13.        323 
