会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
CoolRandy
专注于编程的细节 The most effective way of learning a new program language is through examples: copy and paste a piece of codes, run it to see results, then try to modify and re-run it step-by-step
博客园
首页
新随笔
联系
订阅
管理
2015年10月29日
关于栈和队列的相关操作
摘要: 1、栈 分为顺序栈和链栈 对应数组和链表top指向栈顶元素,设置空栈为-1;存在一个元素时top=0栈的长度为StackSize定义栈的结构体: 1 #include "stdio.h" 2 3 /* 存储空间初始分配量 */ 4 #define MAXSIZE 20 5 6 /* SElemT...
阅读全文
posted @ 2015-10-29 20:08 CoolRandy
阅读(318)
评论(0)
推荐(0)
编辑
公告