5.7.  this                                                              143

 = new str;

p -> how_many++;   //   

delete ;

str::how_many--;

       
    .   
       ;  ,   -
 .      -
    :

class ch_stack {

private:

static const int max__len = 10000;  //

} ;

const stack::int max_len;             // 

5.7. this

  this      .  
    -.   -
   .    -
 this  .

  c_pair.cpp

// this

class c_pair {
public:

void init(char b) { c2 = 1 + (cl = b); }

c_pair increment() { cl++; c2++; return (*this); }

c_pair* where_am_I() { return this; }

void print() { cout  cl  c2  '\t'; }
private:

char cl, c2;

};

int main()
{

c_pair a, b;

a.init('A') ;

a.print() ;

cout  " is at "  a.where_am_I()  endl;

b.init('B');

b.print();