174                                    6.    

delete [] ;

}

      twod   5.9,      -
,  . 147,      int.  -
     si.    -
  ,        [ i ]. 
,       sl*s2 ,  
 ,   s 1 .     -
 .         
.

  lvalue        -
 :

int& matrix::element(int i, int j)
{

assert(i >= 0 && i <= ubi() && j >= 0 && j <= ub2 () ) ;

return p[i][j] ;

}

    ,      .   -
    .

6.9.    

 ()   (sparse),    -
  (    )  . 
        . , -
   P(x)=ix+xl+i     . 
        -
     .     -
     .

 ,      -
;        .  -
      .

  polyl.cpp

//,    

struct term {          // 
int    exponent;    //
double coefficient; //
term* next;

term(int e, double c, term* n = 0)

: exponent(e), coefficient(c), next(n) { }
void print()

(cout  coefficient  "x^"  exponent  " ";}