110                             __     4.     

    :   ,   -
,     ,     . 
,      ,  -
 (container).

   : push, pop, top, empty  full (, -
, , , ).  push    , pop -
      , top     ,
empty ,    , a. full ,    .   -
 .

_1

-FULL: 999

top

-EMPTY: -1

     C++    , 
 ,      .   
       . -
      top,   . 
       ,   
        ch_stack.  
         .

  ch_stacl.h

//   ch_stack

const int max_len = 1000;

enum { EMPTY = -1, FULL = max_len - 1 };

struct ch_stack {

char s[max_len] ;

int top;

};

//    ch_stack

void reset(ch_stack* stk)        // 
{

stk -> top = EMPTY;

}

void push(ch_stack* stk, char c)
{

stk -> s[++stk -> top] = ;    //: ++(stk -> top)
}