数据结构
微蝉
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
顺序表-C语言实现
#include<stdio.h> #include<stdlib.h> #define maxsize 1024 #define null NULL typedef struct list{ int data[maxsize]; int last; }list; list * init_list(){ list *L; L= (list ...原创 2018-12-25 16:27:20 · 565 阅读 · 0 评论 -
链表-c语言实现
#include<stdio.h> #include<stdlib.h> #define NULL 0 // typedef struct stu_node{ // char cno[10]; // char cname[10]; // int iscore[4]; // }elemtype; typedef int elemtype; type...原创 2018-12-25 16:28:28 · 260 阅读 · 0 评论 -
栈-链式栈-C语言实现
#include<stdio.h> //栈完成 #include<malloc.h> #include<stdlib.h> #include<stdbool.h> typedef struct node{ //定义节点 int data; struct node *pnext; }NODE,*PNODE; typedef struc...原创 2018-12-25 16:29:34 · 438 阅读 · 0 评论 -
队列-循环队列-C语言实现
#include<stdio.h> //循环队列完成 #include<malloc.h> #include<stdlib.h> #include<stdbool.h> typedef struct Queue{ int *pBase; //代表数组的首地址 int front;//代表的数组的下标 int rear; }Q...原创 2018-12-25 16:30:43 · 2398 阅读 · 0 评论 -
二叉树遍历-C语言实现
#include <stdio.h> //链式二叉树递归遍历完成 #include <malloc.h> #include <stdlib.h> #include <stdbool.h> typedef struct BTNode { int data; struct BTNode *pLchild; //左孩子 struc...原创 2018-12-25 16:32:04 · 4111 阅读 · 0 评论 -
快速排序-C语言实现
#include<stdio.h> //快速排序完成 void QuickSort(int [],int,int); int FindPos(int *a,int,int); int main(void){ int i; int a[6] ={2,1,2000,99,4,3}; QuickSort(a,0,5); for(i=0;i<6;i++...原创 2018-12-25 16:33:06 · 275 阅读 · 0 评论
分享