         ,   
  catch,    unexpected(). 
 ,       catch, 
   . -  
unexpected()   terminate(),    . 
           
      ( , 
     ),   
  terminate().    terminate()  
 abort(),    . 
     abort()         
  .     . 
          
     unexpected() , , 
terminate(),       
    abort().      , 
       . (  ,  
  ,     !) 

     

         Borland C++  terminate   
  abort(),    ANSI C++,  Borland C++ 4.5  
termiate()   .       abort(), 
      ,    
,      terminate()  abort().

      ,  ,      
  ,   2.   
 (  .).     main()  : 

    int main() { 
      Instruct(); 
      Run(); 
      return 0; 
   } 

    Pow Demonstration	
    rhis program displays the result of raising	
     value (bass) to a power (exponent). To	
    Force an exception, enter a negative base	
    Domian error: se

     Program Aborted

    . 15.2. Windows-  EasyWin-   ,   
 -    

          Run()  
   unexpected(),   terminate(), 
,   ,   abort(),   
.   DOS,   ,  
 "Abnormal program termination" (  ). 
WINDOWS  EasyWin- ,   ,  
 . 15.2.       ,  
        . 


     16.   C++ 411 
