正在加载图片...
(3)入栈 int Push Seq Stack(SeqStack*s, datatype x Rif(s->top==MAXSIZE-1 return 0 /栈满不能入栈* else i S->top++ S->data[s->top]=X, return 1 2021年1月21日 数据结构讲义2021年1月21日 数据结构讲义 9 ⑶入栈 int Push_SeqStack(SeqStack *s, datatype x) {if (s->top= =MAXSIZE-1) return 0; /*栈满不能入栈*/ else { s->top++; s->data[s->top]=x; return 1; } }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有