摘要: 结点是有存储功能的,比较独立的存在。 节点是一连串事件的阶段性标志。 阅读全文
posted @ 2021-12-30 23:32 吕辉 阅读(830) 评论(0) 推荐(0)
摘要: 三元组顺序表 1 #define MAXSIZE 1000//稀疏矩阵非零元素个数 2 typedef int ElementType;//稀疏矩阵元素类型 3 4 typedef struct 5 { 6 int row; 7 int col; 8 ElementType value; 9 }Tr 阅读全文
posted @ 2021-12-28 23:49 吕辉 阅读(500) 评论(0) 推荐(0)
摘要: 1.实参传入的数组实际上是数组中首个元素的地址。 2.形参声明的数组,并未分配内存空间,只是声明了形参数组的首地址(实参传入)。 3.形参数组的首地址和实参数组的首地址一致,所以能够间接调用。 4.函数不检查数组是否越界,且越界不会报错。 阅读全文
posted @ 2021-12-28 09:56 吕辉 阅读(476) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <string.h> 5 6 typedef struct SimpleTextEditor 7 { 8 char* ch; 阅读全文
posted @ 2021-12-27 20:03 吕辉 阅读(86) 评论(0) 推荐(0)
摘要: 最大公约数 阅读全文
posted @ 2021-12-21 21:07 吕辉 阅读(30) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SUCURE_NO_WARNINGS 2 #include <stdio.h> 3 #include <stdlib.h> 4 #define N 255 5 6 int Index_BF(char original[], char object[]);//Brute- 阅读全文
posted @ 2021-12-19 11:32 吕辉 阅读(75) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 #include <stdio.h> 3 #include <stdlib.h> 4 5 typedef struct 6 { 7 char* ch; 8 int len; 9 }HString; 10 11 void Assi 阅读全文
posted @ 2021-12-17 22:14 吕辉 阅读(56) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS//解决vs下scanf报错 2 #include <stdio.h> 3 #include <stdlib.h> 4 #define MAXLEN 5 5 6 typedef struct 7 { 8 char ch[MAXLEN] 阅读全文
posted @ 2021-12-16 21:13 吕辉 阅读(171) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 #define N 5 3 #include <stdio.h> 4 #include <stdlib.h> 5 6 typedef struct coordinate 7 { 8 int x; 9 int y; 10 }COO 阅读全文
posted @ 2021-12-14 20:22 吕辉 阅读(36) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS//不加此行,vs下会报scanf()函数错 2 #define DataType int 3 4 #include <stdio.h> 5 #include <stdlib.h> 6 7 typedef struct node 8 阅读全文
posted @ 2021-12-13 22:02 吕辉 阅读(37) 评论(0) 推荐(0)