- 博客(3)
- 收藏
- 关注
原创 二叉树的建立与遍历
二叉树的建立和遍历只需注意递归函数的使用代码如下:#include<stdio.h>#include<malloc.h>//构建结点域struct Bin_tree{ int data; struct Bin_tree *left; struct Bin_tree *right;};typedef struct Bin_tree ...
2019-11-14 20:39:28
232
原创 数据结构栈和队列的简单操作
一、静态栈#include <stdio.h>#include <stdlib.h>#define P 5 //定义最大栈容量typedef struct Stack //定义栈{ int data[P]; //栈中的数据 int top; //栈顶}stack; st...
2019-10-31 21:35:30
257
原创 数据结构之链表的实现
标题 链表的基本操作一.单向链表的创建,节点的插入和删除1.链表创建:(注意链表的第一个节点是空的)#include<stdio.h>#include<stdlib.h>#include<malloc.h>typedef struct LNode{ int data; struct LNode*next;}LNode,*Linklist; ...
2019-10-30 21:25:01
330
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅