1.4.    23

 one  two  Tnnamy_string (. ).  three 
        my_string.

len     max len





24	!	255	\
			
 				\0			



-      ( -
   ).     ,  - -
      .   -
 :

   .
: 26

   .
: 24

1.4.   

     . -, -
       ,  -
 (constructor).      -
  .    , 
   .      -
  ,        -
   explicit ().  (destructor)   -
-,     ,   
 .      
.   ,     
   .

    my_string.     -
    .     
()  .       -
    .     new.

  string2.cpp

//  my_string

class my_string {
public:       //

explicit my_string(int n) { s = new char[n + 1]; len = n; }

void assignfconst char* st);

int length() const { return len; }

void print() const

{ cout  s  "\: "  len  endl; }