链栈

入栈


出栈
if (S == NULL)
    return ERROR;
e = S->data;
p = S;
S = S->next;
delete p;
return OK;

取栈顶元素
if (S != NULL)
    return S->data;