正在加载图片...
之顺序c( (4)顺序找的基本操作入线: 入栈 int push( SQSTACK“s, elemtype e) f(s→)top= MAXSIZE-1) return0;体栈满,入栈失败* S→>top++; s→>lem|s→>topl=e; return 1栈之顺序栈(cont’d) (4) 顺序栈的基本操作(入栈): int push(SQSTACK *s, elemtype e) { if(s→top==MAXSIZE-1) return 0; /*栈满,入栈失败*/ s→top++; s→elem[s→top]=e; return 1; } • 入栈
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有