*e=*--(*S).top怎么理解
叶子的翅膀 2011-10-19 10:32:37 Status Pop(SqStack *S,SElemType *e)
{ /* 出栈 */
if((*S).top==(*S).base)
return ERROR;
*e=*--(*S).top;
return OK;
}
这是一个栈的应用,其中的*e=*--(*S).top怎么分步理解呢
栈的数据类型
typedef struct SqStack
{
SElemType *base; //在栈构造之前和销毁之后,base值为NULL
SElemType *top; //栈顶指针
int stacksize; //当前已分配的存储空间,以元素为单位
}SqStack; //顺序栈