会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
此后如竟没有炬火 我便是唯一的光
博客园
首页
新随笔
联系
订阅
管理
2022年5月28日
优先队列存储自定义类型对象的指针
摘要: 一开始我想用优先队列来实现构造哈夫曼树,并以指针方式存储每个结点的左右儿子的地址 很自然的想到如下的代码 #include <iostream> #include <algorithm> #include <queue> using namespace std; const int MAX_N =
阅读全文
posted @ 2022-05-28 11:29 四季夏目天下第一
阅读(45)
评论(0)
推荐(0)
编辑
公告