- 博客(7)
- 收藏
- 关注
原创 二叉树中序遍历非递归算法C语言实现
//// Inordertraverse.c// 二叉树链式存储//// Created by 丘** on 2021/7/28.//#include "Inordertraverse.h"#include <stdbool.h>#include<stdlib.h>typedef struct StackNode{ int data; struct StackNode* next; ...
2021-07-28 20:33:43 1003 1
原创 数据结构二叉树遍历递归C语言实现
// inordertraverase.c// 二叉树链式存储//// Created by 丘**on 2021/7/28.//#include "inordertraverase.h"#include<stdlib.h>#include <stdio.h>typedef struct BiTNode{ int data; struct BiTNode* lchild,* rchild; }...
2021-07-28 16:03:42 64
原创 数据结构c语言链表实现
/// main.c// 链表//// Created by 丘** on 2021/7/25.//#include <stdio.h>#include <stdlib.h>typedef struct LNode{ int data; struct LNode* next; }LNode,* LinkList;void CreatList_H(LinkList L,int n)//前插法创建...
2021-07-27 20:18:50 64
原创 顺序队列c语言实现
// main.c// 顺序队//// Created by 丘** on 2021/7/26.//#include <stdio.h>#include <stdlib.h>#define maxsize 100typedef struct{ int a[maxsize]; int front; int rear; }sqQueue;void InitQueue(sqQueue*...
2021-07-26 17:40:09 108
原创 数据结构顺序表的c语言实现
// main.c// 顺序表实现//// Created by 丘** on 2021/7/22.//#include <stdio.h>#include <stdlib.h>typedef struct{ int length; int a[100]; }SqList;void InitList(SqList*p)//初始化{ for(int i=0;i<5...
2021-07-25 13:32:26 110
原创 数据结构链栈c语言实现
//// main.c// Link stack//// Created by 丘** on 2021/7/22.//链栈实现 by c#include <stdio.h>#include <stdlib.h>typedef struct StackNode{ int data; struct StackNode* next; }StackNode;StackNode* push(StackNod...
2021-07-22 20:09:13 179
原创 数据结构c语言顺序栈的实现
#include <stdio.h>#include<stdlib.h>typedef struct{ int base; int top; int stacksize; }sqstack;int a[100];void push(sqstack*p)//入栈{ if(p->top==100) return; int e; printf(...
2021-07-22 16:35:50 101
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人