318                                                      11. 

int main()
{

try {
foo () ;

}
catch(int n)

{ cerr  " \"  n  endl; }
}

 ,  throw i, ,   
catch (infc n)   .     
     .

    ,   ,
     . ,    -
      :

  throw2.cpp

void foo()
{

int i , j ;

throw i;

}

void call_foo()

;

i.

int k;

foo ( ) ;

}

int main()
t

try {

call_foo(); //   foo  i  j

}

catch(int n) { ..... }
}

11.4.1.  

 throw     .
 catch,   ,     -
 .       
try,   ,      -
.   ,      -