顺序表的初始化 出栈 入栈 运行截图: 源代码: #include<stdio.h> #include<stdlib.h> #define MAXSIZE 100 #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int SElemType; typedef int Status; //顺序栈的表示 typedef struct { SElemType *base; SElemType *top; int stacksize; }SqStack; //顺序栈的初始化 Status InitStack(SqStack