200                                             7. Ad hoc 

mins = temp.mins;

hours = temp.hours;

days = temp.days;

}

     tot_s  s  , ,  
. ,    86 400 , ,     ;

    . - tick ()   temp
 clock,       .  -
   ,     .

 operator++ ()     
clock    .       
,   tick (),   ,     

return temp;

   ,    :

void clock::print() const
{

cout  days  "  :"  hours  "  :"

 mins  " M :"  sees  " c"  endl;

}

// clock   

int main()
{

clock tl(59), t2 (172799);  //172799 = 2  - 1 

cout  " "  endl;

tl.print() ;

t2.print() ;

++tl; ++fc2;

cout  "  "  endl;

tl.print();

t2.print() ;

}

   :

 
:0:0:59
1  : 23  : 59  : 59 
  
:0:1:0
2:0:0:0

    ++,    :

clock operator++(clock& cl)

f