166                                    6.    

b.assign(" \") ;

both.concat(a, b) ;

quote . concat (both, authors-
quote -print() ;

   :

    ,
 
 

    ,  ,   -
  .  my_st ring b, both  quote -
   .   author  
   char*.     . 
my_string    b   both.   
 both  author.    .

 my_st ring: :my_string (const char*)   -
      author.     
     my_string: : assign ()  
" \".

6.5.  vect

 C++          -
.         -
-,     .    -
  .         . C++
   ,   
,     :

  vectl.h

//    vect

class vect {
public:

explicit vect(int n = 10);

-vect() { delete [] p; }

int& element(int i);     //  p[i]

int ub() const {return (size - 1);}// 
private:

int* p;

int size;

};

vect::vect(int n) : size(n)
{

assert(n > 0);