
数据结构
Mutou_33
单纯的个人存档
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
链表
#include #include #include using namespace std; #define Type int #define null NULL struct nodeone{ //单向链表 Type data; nodeone *next; }; struct nodetwo { //双向循环链表 Type data; nodetwo*pre; nodet原创 2016-07-20 16:14:58 · 275 阅读 · 0 评论 -
最大堆相关操作
原理可参见:点击打开链接 运行代码: #include using 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 · 264 阅读 · 0 评论