- 博客(3)
- 收藏
- 关注
原创 顺序表的基本操作
#include<stdio.h>#include<stdlib.h>#define maxsize 1000typedef char elemtype;typedef struct{elemtype list[maxsize];int length;}sequenlist;void creatlist(sequenlist *L){int n,i;char tmp;printf("请输入数据的个数:\n");
2022-12-18 18:59:45
46
1
原创 单链表的基本操作
#include<stdio.h>#include<stdlib.h>typedef int Elemtype;typedef int Status;typedef struct node //定义存储节点{Elemtype data; //数据域struct node *next;//结构体指针} node,*linklist; //结构体变量,结构体名称linklist creat(int n)//创建单链表,采用头插法建
2022-12-18 18:59:36
67
1
原创 二叉树遍历
#include<stdio.h>#include<stdlib.h>typedef struct Tree{int data; // 存放数据域struct Tree *lchild; // 遍历左子树指针struct Tree *rchild; // 遍历右子树指针}Tree,*BitTree;BitTree CreateLink(){int data;int temp;BitTree T;
2022-12-18 18:58:27
75
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人