#include <iostream>
#include <iomanip>
#include "prioriy_queue.h"
using namespace std;
int main()
{
const int length = 10;
int array2[length] = {15, 13, 9, 5, 12, 8, 7, 4, 0, 6, };
int *array = new int[length];
int array_length=0;
// Priority_Queue<int> priority_queue(20, Maximum_Priority_Queue);
Priority_Queue<int> priority_queue;
for( int i = 0; i < length; ++i )
priority_queue.enqueue( &array2[i] );
priority_queue.test();
}
堆排序、优先级队列(c++模板实现)
4星 · 超过85%的资源 需积分: 31 60 浏览量
2011-10-19
17:28:07
上传
评论 2
收藏 3.74MB ZIP 举报
march_on
- 粉丝: 62
- 资源: 10
最新资源
- 校园帮项目,毕业设计/课程设计/javaWeb/SSM
- C++ plotting library,matplotlib-cpp-master.zip
- 案例源码matplotlib-examples-master.zip
- 基于JavaScript 实现的KMP 算法
- 基于C++实现二叉树的创建,遍历,添加,查找与删除
- 基于C语言实现二叉树的基本操作
- 毕业设计基于STM32的测量温度与压力的数据处理设计C语言完整源码+论文.zip
- 基于MATLAB的PCA算法人脸识别项目源码+GUI界面+说明文档.zip
- 基于STM32的测量温度与压力的数据处理设计源码+论文(毕业设计).zip
- Vision Transformer 网络对不同氨气氧气浓度轨迹RAS 图像数据集的分类,包含训练权重和数据集、迁移学习
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈