bool push(sqstack & s,selemtype e)
{ //将新元素e压入栈中作为新的栈顶元素
s.top=-1;
if(s.top==s.stacksize-1)
incrememtstacksize(s);
//若栈已满,则重新分配存储空间,
//并追加S.incrementsize个元素空间。
s.elem[++s.top]=e;
return ok;
}// Push_Sq
{ //将新元素e压入栈中作为新的栈顶元素
s.top=-1;
if(s.top==s.stacksize-1)
incrememtstacksize(s);
//若栈已满,则重新分配存储空间,
//并追加S.incrementsize个元素空间。
s.elem[++s.top]=e;
return ok;
}// Push_Sq
