数据结构
森几许
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
带头节点的单链表的常用操作
#include#includetypedef int ElemType;// 函数结果状态代码#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2 //因为在math.h中已定义OVERFLOW的值为3,故去掉此行typedef int Status; //原创 2014-08-24 21:42:53 · 745 阅读 · 0 评论 -
顺序栈的常用操作
#include #include typedef int SElemType; // 函数结果状态代码 #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASIBLE -1 #define OVERFLOW -2 //因为在math.h中已定义原创 2014-08-25 11:38:14 · 545 阅读 · 0 评论 -
栈的应用1:数制转换、括号匹配检验和行编辑程序
栈操作的具体实现参考 void conversion() { //对于输入的任意一个非负十进制整数,打印输出与其等值的八进制数 unsigned int N; SElemType e; SqStack s; InitStack(s); printf("请输入一个十进制数:"); scanf("%d",&N); while(N) { Push(s,N%8原创 2014-08-25 20:28:10 · 784 阅读 · 0 评论
分享