////**********删除栈中的任意元素***********/////
void DeleteStack(SeqStack *s,int xx){
int SS[Maxsize];
int j=0;
while(!StackIsEmpty(s)&&s->data[s->top]!=xx&&j
SS[j]=StackPop(s);
j++;
}
StackPop(s);
for(int i=j-1;i>=0;i--)
{
StackPush(s,SS[i]);
}
}
////**********删除栈中的任意元素***********/////
void DeleteStack(SeqStack *s,int xx){
int SS[Maxsize];
int j=0;
while(!StackIsEmpty(s)&&s->data[s->top]!=xx&&j
SS[j]=StackPop(s);
j++;
}
StackPop(s);
for(int i=j-1;i>=0;i--)
{
StackPush(s,SS[i]);
}
}