
C&C++
iMingle
developer & designer
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
线性表
▶线性表的顺序存储结构 typedef struct { ElementType *element; // 存储空间基地址 int length; // 当前长度 int listsize; // 当前分配的存储容量(ElementType)为单位) }LinearList;C语言部分实现如下:/* * LinearList.c * * Created原创 2014-03-22 14:58:17 · 700 阅读 · 0 评论 -
栈和队列
▶栈的顺序存储结构 typedef struct { ElementType *base; // 在栈构造之前和销毁之后,base的值为null ElementType *top; // 栈顶指针 int stacksize; // 当前分配的存储容量(ElementType)为单位) }Stack;C语言部分代码实现如下: #include #incl原创 2014-03-22 12:49:41 · 772 阅读 · 0 评论