会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
吕辉
管理
上一页
1
2
3
4
5
6
下一页
2021年12月30日
结点与节点的区别
摘要: 结点是有存储功能的,比较独立的存在。 节点是一连串事件的阶段性标志。
阅读全文
posted @ 2021-12-30 23:32 吕辉
阅读(830)
评论(0)
推荐(0)
2021年12月28日
稀疏矩阵的转置运算(三元组顺序表)
摘要: 三元组顺序表 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)
2021年12月27日
简单文本编辑器(双向链表+堆串)
摘要: 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)
2021年12月21日
欧几里得算法
摘要: 最大公约数
阅读全文
posted @ 2021-12-21 21:07 吕辉
阅读(30)
评论(0)
推荐(0)
2021年12月19日
串的模式匹配
摘要: 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)
2021年12月17日
堆串
摘要: 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)
2021年12月16日
定长顺序串的基本操作
摘要: 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)
2021年12月14日
迷宫问题(递归)
摘要: 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)
2021年12月13日
链队列
摘要: 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)
上一页
1
2
3
4
5
6
下一页