第4章 栈队列-3.pptVIP

  • 80
  • 0
  • 约6.04千字
  • 约 23页
  • 2016-12-25 发布于河南
  • 举报
第*页 第4章 栈和队列 4.3 栈和队列算法实现的C语言源程序 4.3.1 栈的顺序存储结构及实现 #include stdio.h #include stdlib.h #define MAXSIZE 100 typedef int ElemType; typedef struct { ElemType elem[MAXSIZE]; int top; }SqStack; /*顺序栈的类型标识符 */ 赚类莎频柔召熄慈班垃多棍砧雍将陕幂泳裕榔暮音垢鱼寇钢嫌烤游万夯倚第4章 栈和队列-3第4章 栈和队列-3 void OutStack(SqStack p); /*此处参数必须与下边函数说明一致*/ void InitStack(SqStack *p); void Push(SqStack *p,ElemType x); ElemType Pop(SqStack *p); ElemType GetTop(SqStack p); 沧疮讽宁海弱新肃颖愉应曲鹤寥辉档柯艳靛淖炊艰晕囊效砖腊取隘于咯啼第4章 栈和队列-3第4章 栈和队列-3 main(?) { SqStack q; int i,y,cord; ElemType a; do { printf(\n); printf(\n 主菜单\n);

文档评论(0)

1亿VIP精品文档

相关文档