11.2.  signal, h 315

       -
.          -
.

 else

exit(0) ;

    exit ()  stdlib.h.

      ranavect (.  7.7, -
    ,  . 203).   
   ,    -
 .

  vectS.h

const int SIGHEAP = SIGUSR1;

const int SIGSIZE = SIGUSR2;

vect::vect(int n)
{

if (n <= 0) {

raise(SIGSIZE) ;

cout  " n,  : ";

 in  n;       //   
}

 = new int[nil-
if ( == 0) {

raise(SIGHEAP) ;

 = new int[n] ;

}
}

   ,     -
. :

void vect_size_handler ( int sig)
{

char  ;

cout  "\ \   "
 "   : ";

 in  ;

if ( == '') {

signal(SIGSIZE, vect_size_handler) ;

}
else

exit (0) ;

}