上一页 1 2 3 4 5 6 7 8 ··· 63 下一页
摘要: 二叉树的先中后序遍历_哔哩哔哩_bilibili //二叉树的递归遍历 #include<stdio.h> #include<stdlib.h> #include<stdbool.h> //二叉树结点定义 typedef struct BiTNode{ char data; //数据域 struct 阅读全文
posted @ 2026-09-24 07:02 董晓 阅读(57) 评论(0) 推荐(0)
摘要: 二叉树的存储结构_哔哩哔哩_bilibili // 二叉树的顺序存储 #include<stdio.h> #include<stdlib.h> #include<stdbool.h> #define MaxSize 10 typedef struct TreeNode{ char data; //数 阅读全文
posted @ 2026-09-23 07:02 董晓 阅读(57) 评论(0) 推荐(0)
摘要: 栈与递归_哔哩哔哩_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; F2(x 阅读全文
posted @ 2026-09-17 07:02 董晓 阅读(29) 评论(0) 推荐(0)
摘要: 栈与表达式求值_哔哩哔哩_bilibili U597840 中缀转后缀 - 洛谷 //U597840 中缀转后缀 链栈版 C++编译 #include<stdio.h> #include<stdlib.h> #include<stdbool.h> #include<string.h> // 链栈结构 阅读全文
posted @ 2026-09-16 07:06 董晓 阅读(33) 评论(0) 推荐(0)
摘要: 栈与括号匹配_哔哩哔哩_bilibili B2165 括号匹配 - 洛谷 //B2165 括号匹配 链栈版 C++编译 #include<stdio.h> #include<stdlib.h> #include<stdbool.h> #include<string.h> typedef struct 阅读全文
posted @ 2026-09-15 06:36 董晓 阅读(40) 评论(0) 推荐(0)
摘要: 链队列_哔哩哔哩_bilibili //链队列的实现(带头结点) C++编译 #include<stdio.h> #include<stdlib.h> #include<stdbool.h> //链队列结点定义 typedef struct LinkNode{ int data; struct Li 阅读全文
posted @ 2026-09-13 07:12 董晓 阅读(32) 评论(0) 推荐(0)
摘要: 顺序队列 循环队列_哔哩哔哩_bilibili //顺序队列的实现 C++编译 #include<stdio.h> #include<stdlib.h> #include<stdbool.h> #define MaxSize 5 //队列的容量 //顺序队列的类型定义 typedef struct{ 阅读全文
posted @ 2026-09-12 07:52 董晓 阅读(40) 评论(0) 推荐(0)
摘要: 链栈_哔哩哔哩_bilibili //链栈的实现(带头结点) C++编译 #include<stdio.h> #include<stdlib.h> #include<stdbool.h> typedef struct LiNode{ int data; struct LiNode *next; }L 阅读全文
posted @ 2026-09-10 07:06 董晓 阅读(34) 评论(0) 推荐(0)
摘要: 顺序栈_哔哩哔哩_bilibili //顺序栈的实现 C++编译 #include<stdio.h> #include<stdlib.h> #include<stdbool.h> #define MaxSize 10 //栈的容量 //顺序栈的类型定义 typedef struct{ int dat 阅读全文
posted @ 2026-09-09 07:00 董晓 阅读(49) 评论(0) 推荐(0)
摘要: 循环链表_哔哩哔哩_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 董晓 阅读(40) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 63 下一页