*非空栈中的栈顶指针始终在栈顶元素的下一个位置;
*top为栈顶指针其初值指向栈底,即top = base 可作为栈空的标记插入新的栈顶元素,指针top增1;删除栈顶元素时指针top减1;
#include<iostream>
#include<stdlib.h>
# define STACK_INIT_SIZE 100
# define STACKINCREMENT 10
# define ElemType int
# define OVERFLOW -1
# define ERROR -1
using namespace std;
typedef struct {
ElemType *base;
int *top;
int stacksize;
}SqStack;
void InitStack(SqStack &S