bool Push(SqStack &S,Elemtyoe x){ if(S.top==MaxSize-1)//栈满,报错 return false; S.data[++S.top]=x;//指针先加1再进栈 return true; } (4)出栈 bool Pop(SqStack &S,Elemtyoe &x){ if(S.top==-1)//栈空,报错 return false; x=S.data[S.top--];//先出栈,指针减一 return t...