3_栈
摘要:逻辑结构 栈是限定只能在表尾进行插入或删除操作的线性表 “后进先出” 存储结构 顺序栈表示方法: s.top=-1 //栈空条件,也是初始化,栈顶指针为-1 s.top=MaxSize-1 //栈满条件 s.top+1 //栈长 s.data[++s.top]=x //进栈,指针先加1再入栈 x=s
阅读全文
posted @ 2017-08-18 10:07
posted @ 2017-08-18 10:07
posted @ 2017-08-17 19:55
posted @ 2017-08-12 17:12
posted @ 2017-08-08 23:08