- 博客(11)
- 问答 (2)
- 收藏
- 关注
原创 无向图的深度与广度优先遍历
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <string.h> //全局定义特殊变量 #define MVNum 100 #define OVERFLOW 0 #define MAX 10 #define ok 1 //转定义区域 typedef int OtherInfo; typedef char VerTexType; typedef int.
2022-05-26 10:42:27
2766
1
原创 串的BF和KMP算法匹配
BF代码: status Index_BF(SString S, SString T,int pos)//pos的作用确定起始查询位置 { int i, j; i = pos; j = 1; while (i <= S.length && j <= T.length) { if (S.ch[i] == T.ch[j]) { ++i; ++j; } else { i = i - j + 2; j = 1; } } if
2022-04-13 23:03:51
150
原创 循环队列的基本操作
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <malloc.h> //全局定义特殊变量 #define ok 1 #define OVERFLOW 0 #define MAX 10 //转定义区域 typedef char QElemType; typedef int status; typedef struct//定义循环队列 { QElemType* base; int front; int.
2022-04-10 17:55:36
157
原创 链栈的基本操作
#define _CRT_SECURE_NO_WARNINGS//链栈 #include <stdio.h> #include <malloc.h> //全局定义特殊变量 #define ok 1 //转定义区域 typedef char SElemType; typedef int status; typedef struct StackNode//定义栈 { SElemType data; struct StackNode* next; }StackNode,*L.
2022-04-10 16:35:34
407
原创 链队列的基本操作
#define _CRT_SECURE_NO_WARNINGS//链栈 #include <stdio.h> #include <malloc.h> //全局定义特殊变量 #define ok 1 //转定义区域 typedef char SElemType; typedef int status; typedef struct QNode { SElemType data; struct QNode* next; }QNode,*QueuePtr; void Int.
2022-04-10 16:32:21
139
空空如也
执行6的时候名字怎么由链表转到数组保存并输出
2021-12-05
为什么链表里面的else不能输出(代码中打#的地方)
2021-12-03
TA创建的收藏夹 TA关注的收藏夹
TA关注的人