上一页 1 2 3 4 5 6 ··· 60 下一页
摘要: 2.2 二叉树的存储结构_哔哩哔哩_bilibili // 二叉树的顺序存储 #include<stdio.h> #include<stdlib.h> #include<stdbool.h> #define MaxSize 10 typedef struct TreeNode{ char data; 阅读全文
posted @ 2026-09-23 07:02 董晓 阅读(19) 评论(0) 推荐(0)
摘要: 3.3 栈与递归_哔哩哔哩_bilibili //函数调用 C++编译 #include<iostream> using namespace std; void F2(int x){ int m,n; m=x+1; n=x+2; } void F1(int a,int b){ int x=a+b; 阅读全文
posted @ 2026-09-17 07:02 董晓 阅读(15) 评论(0) 推荐(0)
摘要: 3.2 栈与表达式求值_哔哩哔哩_bilibili U597840 中缀转后缀 - 洛谷 //U597840 中缀转后缀 链栈版 C++编译 #include<stdio.h> #include<stdlib.h> #include<stdbool.h> #include<string.h> // 阅读全文
posted @ 2026-09-16 07:06 董晓 阅读(15) 评论(0) 推荐(0)
摘要: 3.1 栈与括号匹配_哔哩哔哩_bilibili B2165 括号匹配 - 洛谷 //B2165 括号匹配 链栈版 C++编译 #include<stdio.h> #include<stdlib.h> #include<stdbool.h> #include<string.h> typedef st 阅读全文
posted @ 2026-09-15 06:36 董晓 阅读(13) 评论(0) 推荐(0)
摘要: 2.3 链队列_哔哩哔哩_bilibili //链队列的实现(带头结点) C++编译 #include<stdio.h> #include<stdlib.h> #include<stdbool.h> //链队列结点定义 typedef struct LinkNode{ int data; struc 阅读全文
posted @ 2026-09-13 07:12 董晓 阅读(11) 评论(0) 推荐(0)
摘要: 2.2 顺序队列 循环队列_哔哩哔哩_bilibili //顺序队列的实现 C++编译 #include<stdio.h> #include<stdlib.h> #include<stdbool.h> #define MaxSize 5 //队列的容量 //顺序队列的类型定义 typedef str 阅读全文
posted @ 2026-09-12 07:52 董晓 阅读(17) 评论(0) 推荐(0)
摘要: 1.3 链栈_哔哩哔哩_bilibili //链栈的实现(带头结点) C++编译 #include<stdio.h> #include<stdlib.h> #include<stdbool.h> typedef struct LiNode{ int data; struct LiNode *next 阅读全文
posted @ 2026-09-10 07:06 董晓 阅读(17) 评论(0) 推荐(0)
摘要: 1.2 顺序栈_哔哩哔哩_bilibili //顺序栈的实现 C++编译 #include<stdio.h> #include<stdlib.h> #include<stdbool.h> #define MaxSize 10 //栈的容量 //顺序栈的类型定义 typedef struct{ int 阅读全文
posted @ 2026-09-09 07:00 董晓 阅读(23) 评论(0) 推荐(0)
摘要: 3.5 循环链表_哔哩哔哩_bilibili //循环单链表(带头结点)C++编译 #include<stdio.h> #include<stdlib.h> #include<stdbool.h> typedef struct LNode{ int data; struct LNode *next; 阅读全文
posted @ 2026-09-07 06:52 董晓 阅读(22) 评论(0) 推荐(0)
摘要: 3.4 双链表_哔哩哔哩_bilibili // 双链表(带头结点) C++编译 #include<stdio.h> #include<stdlib.h> #include<stdbool.h> typedef struct DNode{ //定义双链表结点类型 int data; struct D 阅读全文
posted @ 2026-09-06 06:28 董晓 阅读(19) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 60 下一页