![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
Mutou_33
单纯的个人存档
展开
-
链表
#include#include#includeusing namespace std;#define Type int#define null NULLstruct nodeone{ //单向链表 Type data; nodeone *next;};struct nodetwo { //双向循环链表 Type data; nodetwo*pre; nodet原创 2016-07-20 16:14:58 · 202 阅读 · 0 评论 -
最大堆相关操作
原理可参见:点击打开链接运行代码:#includeusing namespace std;class heapSort{private: int* array; int maxSize; int currentSize;public: heapSort(); ~heapSort(); void buildHeap(int size); bool isLeftChild原创 2016-10-02 23:46:24 · 205 阅读 · 0 评论