int Pop_SeqStack(PSeqStack S,int *x)
{
if(Empty_SeqStack(S))
return 0;
else
{
*x=S->data[S->top];
S->top--;
return 1;
}
}
int Push_SeqStack(PSeqStack S,int x)
{
if(Empty_SeqStack(S))
return 0;
else
{
S->top++;
S->data[S->top]=x;
return 1;
}
}
这两个是栈的入栈和出栈代码,为啥出栈需要传入指针*x,能告诉我什么时候该传入指针吗