![](https://img-blog.csdnimg.cn/20190927151053287.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
数据结构
数据结构
自律且java
这个作者很懒,什么都没留下…
展开
-
数据结构树递归
#include <stdio.h> #include <stdlib.h> typedef char ElemType; typedef struct BNode { ElemType data; struct BNode *lchild; struct BNode *rchild; }BNode,*BiTree; /* 先序遍历 */ void preOrd(BiTree T) { if(T != NULL) {原创 2021-09-10 21:15:26 · 192 阅读 · 0 评论 -
顺序表的基本操作
顺序表的基本操作 #include <stdio.h> #include <stdlib.h> typedef int ElemType; //自定义数据类型 /* 遍历顺序表 */ void printList(ElemType pList[],int length) { for(int i = 0;i < length;i++) { printf("%d ",pList[i]);//打印每个元素 } printf("原创 2021-09-06 22:30:43 · 173 阅读 · 0 评论