![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
进击的数据结构
文章平均质量分 75
buptwqp
这个作者很懒,什么都没留下…
展开
-
进击的数据结构一之线性表的顺序结构
#include#include#define MaxSize 100;typedef int SlemType;typedef int Status;typedef struct{ SlemType date[MaxSize]; int length;}Sqlist;Status Initlist(Sqlist *S){ S.lenth=0;原创 2013-10-26 21:46:19 · 445 阅读 · 0 评论 -
进击的数据结构二之线性表的链式结构
#include#includetypedef int ElemType;typedef int status;typedef struct Node{ Elemtype date; struct Node *next;}Node;typedef Node *Linklist;status GetElem(Linklist S,int i;Elemtype &e)翻译 2013-10-27 16:16:55 · 471 阅读 · 0 评论 -
进击的数据结构三之栈的顺序存储结构
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h"#define MAXSIZE 20 /* 存储空间初始分配量 */typedef int Status; typedef int SElemType; /* SElemType类型根据实际原创 2013-10-29 22:58:36 · 370 阅读 · 0 评论 -
栈的链式操作-------
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 20 /* 存储空间初始分配量 */t原创 2013-10-30 23:13:06 · 364 阅读 · 0 评论 -
进击的数据结构之六队列的基本操作-顺序结构
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 20 /* 存储空间初始分配量 */t原创 2013-10-31 20:54:12 · 549 阅读 · 0 评论 -
关于今天老师讲的树的一些基本练习
今天老师讲了二叉树,上课听得各种听不懂呀,各种递归呀,木有办法啦。。下课自己敲来实践~\(≧▽≦)/~。。。。应了一句话人笨就要多练习。。。void Copytree(bitPtr t,bitPtr &nt)//复制一个树 { if(!t) return 0; else{ nt=new node; nt->date=t->date; Copttree(t->l原创 2013-11-01 20:25:46 · 361 阅读 · 0 评论