                         _____       ______________183

  

ch_stack::ch_stack(int size) :

max_len(size), top(EMPTY)
{ s = new char[size]; assert(s i= 0); }

  ,  ,     
const.    .  ,   
    .

 ,  new   ,  
   .    -
      . ,  
 ,     ,   
     .     -
 ,       
operator= ().      .  C++
     explicit,   
  ,      
   .

class ch_stack {
public:

explicit stack(int n); // 

// 



1.    -,      .  -
    .       -
         
new.  ,        -
:

TYPE_foo (3);// TYPE_foo::TYPE_foo(int)
extern TYPE_foo x; //,   

 :     .    -
    .

2.    -,      ,
  : ~.     -
   ,  ,   delete.

3. ,   ,    -
.          ,
       .   
      .

4.   