博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 ··· 19 下一页

2025年8月25日

摘要: 一、华为模拟器基本使用 命令行视图级别 用户视图 ● 查看运行状态或其他参数 系统视图 ● 配置设备的系统参数 接口视图 ● 配置接口参数 协议视图 ● 配置路由协议 交换机:switch 路由器:router 二、命令 1、忘记命令输入:? 查看帮助 2、命令补全:tab 3、所有视图都支持命令简 阅读全文

posted @ 2025-08-25 17:04 steve.z 阅读(119) 评论(0) 推荐(0)

2025年4月27日

摘要: // 根据模式串构建 next 数组 void buildNext(const char *pattern, int *next) { int i, j; int m = (int)strlen(pattern); next[0] = -1; for (j = 1; j < m; j++) { i 阅读全文

posted @ 2025-04-27 11:11 steve.z 阅读(42) 评论(0) 推荐(0)

2025年4月23日

摘要: 要求: 任务描述 本关任务:使用C语言编写一个对C语言进行词法分析的程序。 编程要求 根据提示,在右侧编辑器补充代码,从标准输入流读取字符,并完成词法分析任务。 其中,单词可以分为以下几类 第1类:标识符,由字母开头,由字母和数字组成 第2类:保留字,共32个,已存储到keyword_list数组中 阅读全文

posted @ 2025-04-23 10:24 steve.z 阅读(205) 评论(0) 推荐(0)

2025年4月20日

摘要: // // main.c // 09_String // // Created by steve xiaohu zhao on 2025/4/20. // #include <stdio.h> #include <string.h> /// 暴力匹配算法(Brute Force)——方式一 /// 阅读全文

posted @ 2025-04-20 09:50 steve.z 阅读(52) 评论(0) 推荐(0)

2025年4月7日

摘要: 1. 伪代码 1. 递归版本 Function MergeTwoLists(l1, l2): If l1 is null: Return l2 If l2 is null: Return l1 If l1.value < l2.value: l1.next = MergeTwoLists(l1.ne 阅读全文

posted @ 2025-04-07 10:49 steve.z 阅读(15) 评论(0) 推荐(0)

2025年3月31日

摘要: 伪代码: A: 数组名 n: 数组长度 BUBBLE-SORT(A, n) for i = 0 to n-2 for j = 0 to n-2-i if A[j] > A[j+1] swap A[j] with A[j+1] void bubbleSort(int A[], int n) { for 阅读全文

posted @ 2025-03-31 19:54 steve.z 阅读(7) 评论(0) 推荐(0)

摘要: 伪代码: A: 数组名 n: 数组长度 SELECTION-SORT(A, n) for i = 0 to n-2 min_idx = i for j = i+1 to n-1 if A[j] < A[min_idx] min_idx = j if min_idx != i swap A[i] wi 阅读全文

posted @ 2025-03-31 19:45 steve.z 阅读(16) 评论(0) 推荐(0)

摘要: 伪代码: A: 数组名。 n: 数组长度。 INSERTION-SORT(A, n) for i = 1 to n-1 key = A[i] j = i - 1 while j >= 0 and A[j] > key A[j + 1] = A[j] j = j - 1 A[j + 1] = key 阅读全文

posted @ 2025-03-31 19:35 steve.z 阅读(26) 评论(0) 推荐(0)

2025年2月7日

摘要: // // main.c // 01递归理解:通过求阶乘(factorial)和斐波那契数列(fibonacci sequence)理解递归 // // Created by steve xiaohu zhao on 2025/2/7. // #include <stdio.h> // 1. 求阶乘 阅读全文

posted @ 2025-02-07 11:10 steve.z 阅读(52) 评论(0) 推荐(0)

2025年1月20日

摘要: // // main.c // Test_C // // Created by steve xiaohu zhao on 2025/1/20. // #include <stdio.h> // C 语言指针传递参数(引用传递) void swap(int *px, int *py) { int t 阅读全文

posted @ 2025-01-20 15:28 steve.z 阅读(61) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 19 下一页