摘要:
pthread_create函数:/*创建一个线程*/ 原型:int pthread_create((pthread_t *thread, pthread_attr_t *attr, void *(*start_routine)(void *), void *arg) 用法:#include <pt 阅读全文
posted @ 2021-07-06 23:39
皮特99
阅读(52)
评论(0)
推荐(0)
摘要:
通用的堆排函数思想 : 1.对任意一个点进行调整, 需要往两个方向, 父节点和左右子节点进行比较, 交换 2.传入不同的比较函数使得函数变成通用的 对一堆数据,需要用堆排: (1). 插入方法建堆 (实际工作中这种是更常见) (2). 基于当前数组进行建堆 比较函数 , 交换函数, 打印函数 :\ 阅读全文
posted @ 2021-07-06 23:22
皮特99
阅读(238)
评论(0)
推荐(0)
浙公网安备 33010602011771号