- 博客(6)
- 收藏
- 关注
原创 双向链表的基本操作
#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include<stdlib.h>#include #define Error 0#define OK 1typedef int ElemType;typedef struct DuLNode{ElemType data;struct DuLNode* prior;struct DuLNode* next;}DuLNode, * DuLinkList;void
2022-04-07 20:47:39
575
原创 二叉树的基本操作(严蔚敏版数据结构)
#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include<stdlib.h>typedef char TElemType;//定义二叉树结构typedef struct BiNode{ TElemType data; struct BiNode* Lchild, * Rchild;//左右孩子指针}BiNode,*BiTree;//先序创建二叉树void CreatBiTree(BiTree&a
2022-03-30 21:34:21
159
原创 顺序栈的基本操作(严蔚敏版数据结构)
本文实现了顺序栈栈的基本操作,包括顺序栈的建立、出栈、入栈、取栈顶元素和显示,适用于数据结构入门的读者学习。如有错误欢迎大家指正。
2022-03-28 18:19:10
347
原创 单链表的建立与显示(严蔚敏版数据结构)
#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include <stdlib.h>typedef struct LNode{ int data; struct LNode* next;}LNode, * LinkList;void CreateList(LinkList& L, int n)//利用头插法建立一个链表{ LNode* p; int i; L = ne...
2022-03-24 19:41:44
2462
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人