![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
biglayis
O_O
展开
-
顺序表的基本操作用c语言实现
#include <stdio.h> #include <stdbool.h> #include <malloc.h> #define initSize 20typedef struct{ int *data; int len,maxsize;//当前元素个数和最大容量 }SqList;bool InitList(SqList *L); bool ListInsert(int i,i原创 2017-08-03 20:50:29 · 633 阅读 · 0 评论 -
单链表的基本操作用c语言表示
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #define INITSIZE 5typedef struct node { int data; struct node *next; }Node,*LinkList;void CreateList(LinkList L,int n);//用头插法创建链表 voi原创 2017-08-03 21:13:54 · 337 阅读 · 0 评论 -
二叉树的遍历
#include <stdio.h> #include <stdlib.h> #define MAXSIZE 100 #define TElemType char typedef struct BiTNode { TElemType data; struct BiTNode *lchild,*rchild; }BiTNode,*BiTree;//链式存储,用于一般的二叉树 //顺序栈原创 2017-08-30 14:04:57 · 204 阅读 · 0 评论