摘要: #include<algorithm> 常用方法有4个:make_heap、sort_heap、pop_heap、push_heap 这4个函数的参数都一样,返回值都为void。 first 首元素地址 last 尾元素地址 cmp 比较函数(决定大堆还是小堆) 1 template <class 阅读全文
posted @ 2020-04-07 18:07 ponxiaoming 阅读(494) 评论(0) 推荐(0) 编辑