正在加载图片...
(4)出栈 P int Pop_ SeqStack(SeqStack*s, datatype*x) f if(Empty Seqstack (s)) return 0 *栈空不能出栈* else (Axs->data[s->top S->top--, return }/栈顶元素存入*x,返回* 2021年1月21日 数据结构讲义 102021年1月21日 数据结构讲义 10 ⑷出栈 int Pop_SeqStack(SeqStack *s, datatype *x) { if (Empty_SeqStack(s)) return 0; /*栈空不能出栈 */ else { *x=s->data[s->top]; s->top--; return 1; } /*栈顶元素存入*x,返回*/ }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有