23 lines
380 B
C
23 lines
380 B
C
|
#ifndef ARRAY_SATCK
|
|||
|
#define ARRAY_SATCK
|
|||
|
#define MAX_S 100
|
|||
|
#define elem_type int
|
|||
|
typedef struct array_stack
|
|||
|
{
|
|||
|
elem_type data[MAX_S];
|
|||
|
int top;
|
|||
|
}array_stack;
|
|||
|
// <20><>ʼջ
|
|||
|
array_stack* init_array_stack(void);
|
|||
|
|
|||
|
// <20><>ջ
|
|||
|
void push_array_stack(array_stack* s, elem_type value);
|
|||
|
|
|||
|
// <20><>ջ
|
|||
|
int pop_array_stack(array_stack* s);
|
|||
|
|
|||
|
// <20><>ӡ<EFBFBD><D3A1><EFBFBD><EFBFBD>ջ
|
|||
|
void print_array_stack(array_stack* s);
|
|||
|
|
|||
|
#endif
|