/*_##################################### #######################################
_##
_ ## Interface of a dynamic array stack Module
_ ## Author: xwlee
_ ## Time: 2006.12.30
### Chang'an University
_ ## Development condition: win2003 SERVER + vc6.0
_##
_ ## Stack. h file
_####################################### ###################################*/
// Type of the value stored in the stack.
# Define stack_type int
// -------------------------- External interface -------------------------------
// Create a stack. The parameter specifies how many elements can be saved.
Int create_stack (size_t size );
// Destroy the stack
Int destroy_stack (void );
// Press a new value into the stack.
Void push (stack_type value );
// Pop up a value from the stack and discard it.
Void POP (void );
// Return the value of the element at the top of the stack, but do not modify the stack.
Stack_type top (void );
// If the stack is empty, true is returned; otherwise, false is returned.
Int is_empty (void );
// If the stack is full, true is returned; otherwise, false is returned.
Int is_full (void );
// -------------------------- External interface -------------------------------