KID_XiaoYuan

导航

2020年1月18日 #

STL测试3)优先级队列实现二叉堆

摘要: 用法: big_heap.empty();判断堆是否为空 big_heap.pop();弹出栈顶元素最大值 big_heap.push(x);将x添加到最大堆 big_heap.top();返回栈顶元素; big_heap.size();返回堆中元素个数 简单的应用 #include<stdio.h 阅读全文

posted @ 2020-01-18 23:19 KID_XiaoYuan 阅读(237) 评论(0) 推荐(0) 编辑