2021年6月26日

摘要: //构造一颗二叉树,输出其先序、中序、后序遍历序列,再求二叉树结点总数、叶子结点数、深度 #include<stdio.h> #include<stdlib.h> #define OK 1 #define OVERFLOW -2 #define ERROR 0 typedef char TElemT 阅读全文

posted @ 2021-06-26 21:58 Cherrysnake 阅读(976) 评论(0) 推荐(0) 编辑

2021年6月11日

摘要: //1. 利用“定长顺序储存”实现串的模式匹配(BF算法); #include<stdio.h> #define MAXSTRLEN 255 typedef unsigned char SString[MAXSTRLEN+1]; int Index(SString S,SString T,int p 阅读全文

posted @ 2021-06-11 18:57 Cherrysnake 阅读(459) 评论(0) 推荐(0) 编辑

2021年6月3日

摘要: #include<stdio.h>#include<stdlib.h>#define MAXQSIZE 100#define OK 1#define ERROR 0#define OVERFLOW -2 typedef int QElemType;typedef int status;typedef 阅读全文

posted @ 2021-06-03 22:14 Cherrysnake 阅读(200) 评论(0) 推荐(0) 编辑

2021年5月28日

摘要: #include<stdio.h>#include<stdlib.h>#define OK 1#define ERROR 0#define OVERFLOW -2#define MAXSIZE 100 typedef int SElemType;//分号不能掉 typedef int Status; 阅读全文

posted @ 2021-05-28 16:26 Cherrysnake 阅读(724) 评论(1) 推荐(0) 编辑