
c语言数据结构
C语言实现数据结构的基操
少季池鱼
沧海一猿,学习路上
展开
-
草鸡简单的树系统
/树子系统/#include <stdio.h>#include <malloc.h>#define MAX 100int count=0; /定义计算结点个数的变量/typedef struct tnode{char data;struct tnode *lchild,*rchild;}*BiTree,tnode;void pre_order_traveral_brackets1(BiTree t);void原创 2020-11-23 19:52:01 · 233 阅读 · 0 评论 -
草鸡简单的排序系统
#include<stdio.h>#include"stdlib.h"#define MAXSIZE 100 /线性表中最大元素个数/typedef int KeyType; /关键字类型/typedef struct{ KeyType Key; /关键字域/}LineList;void bubble(LineList a[],int n) //冒泡排序{int i,j,temp;for(i=0;i<n-1;i++)for(j=原创 2020-11-23 19:50:33 · 228 阅读 · 0 评论 -
草鸡简单的队列系统
#include"stdio.h"#include"stdlib.h"typedef int elemtype;typedef struct queue{elemtype data;struct queue *next;} ;typedef struct{struct queue *front;struct queue *rear;}linkqueue;elemtype inilist(linkqueue l){l->front=l->rear=(struct queue原创 2020-11-23 19:49:18 · 214 阅读 · 0 评论 -
简单的排序系统(C语言)
简单的排序系统(C语言)#include<stdio.h>#include"stdlib.h"#define MAXSIZE 100 /线性表中最大元素个数/typedef int KeyType1; /关键字类型/typedef struct{ KeyType Key; /关键字域/}LineList;void bubble(LineList a[],int n) //冒泡排序{int i,j,temp;for(i=0;i<n原创 2020-08-20 12:52:28 · 456 阅读 · 0 评论 -
来来来!!草鸡简单的线性表系统(包含线性表的基本操作)
完整的线性表系统(包含线性表的基本操作)```/线性表系统/#include <stdio.h>#include <malloc.h>typedef int DataType; /定义DataType为int类型/typedef struct lnode /单链表存储类型/{DataType data; /定义结点的数据域/struct lnode *next; /定义结点的指针域/} *原创 2020-08-20 12:45:14 · 252 阅读 · 0 评论 -
串的基本操作(非常全)
#include"stdio.h"#include"stdlib.h"#include"string.h"#define msize 20typedef char elemtype;typedef struct{elemtype *ch;int length;int size;}chuan;chuan inilist(){chuan str;str.ch=(elemtype...原创 2020-03-31 15:13:11 · 2116 阅读 · 0 评论