摘要: **C++中菱形继承中继承不明确问题** ![](https://img2023.cnblogs.com/blog/3082337/202308/3082337-20230825011731543-1899207997.png) ```c++ class A { public: virtual vo 阅读全文
posted @ 2023-08-24 22:28 Hayaizo 阅读(15) 评论(0) 推荐(0) 编辑
摘要: **优先队列** ![](https://img2023.cnblogs.com/blog/3082337/202308/3082337-20230825011750910-1365411514.jpg) #### 核心代码 ```c++ #pragma once #include #include 阅读全文
posted @ 2023-08-24 22:28 Hayaizo 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 常见指令以及权限理解 # 命令格式: > `command [-options] parameter1 parameter1` > > 命令 选项 参数1 参数2 > > 1.`command`为命令名称,例如变化目录的`cd`等 > > 2.中括号`[ ]`实际在命令中是不存在的,这个中括号代表* 阅读全文
posted @ 2023-08-24 22:28 Hayaizo 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #### C++中的继承 ![](https://img2023.cnblogs.com/blog/3082337/202308/3082337-20230825011929299-1362104852.jpg) #### 1.继承的概念和定义 >**继承**是一种提高代码复用率的重要方式,它允许程 阅读全文
posted @ 2023-08-24 22:28 Hayaizo 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #### 可直接获取链表长度的单链表 #### SeqList.h文件 ```c #pragma once //存size的链表 #include #include #include #include typedef int SeqDataType; typedef struct SeqNode { 阅读全文
posted @ 2023-08-24 22:28 Hayaizo 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 队列 queue.h文件 ```c #include"queue.h" int main(void) { Queue q; QueueInit(&q); QueuePush(&q, 1); QueuePush(&q, 2); QueuePush(&q, 3); QueuePush(&q, 4); Q 阅读全文
posted @ 2023-08-24 22:28 Hayaizo 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 二叉树的实现(包括层序遍历) queue.h文件 ```c #pragma once #include #include #include typedef struct BinaryTreeNode* QDataType; typedef struct QueueNode { struct Queu 阅读全文
posted @ 2023-08-24 22:28 Hayaizo 阅读(4) 评论(0) 推荐(0) 编辑
摘要: Heap堆排序 向上调整 当我们在一个堆的末尾插入一个数据后,需要对堆进行调整,使其仍然是一个堆,这时需要用到堆的向上调整算法。 ![](https://img2023.cnblogs.com/blog/3082337/202308/3082337-20230825012110347-1338396 阅读全文
posted @ 2023-08-24 22:28 Hayaizo 阅读(2) 评论(0) 推荐(0) 编辑
摘要: ### Lesson6--排序 #### 【本节目标】 - #### 1.排序的概念及其运用 - #### 2.常见排序算法的实现 - #### 3.排序算法复杂度及稳定性分析 ![](https://img2023.cnblogs.com/blog/3082337/202308/3082337-2 阅读全文
posted @ 2023-08-24 22:28 Hayaizo 阅读(6) 评论(0) 推荐(0) 编辑
摘要: #### List.h文件 ```c++ #pragma once #include #include #include #include typedef int LTDateType; typedef struct ListNode { struct ListNode* prev; struct 阅读全文
posted @ 2023-08-24 22:28 Hayaizo 阅读(2) 评论(0) 推荐(0) 编辑