摘要: 堆排序 #include <iostream> #include <algorithm> using namespace std; void max_heapify(int arr[], int start, int end) { int dad = start; int son = dad * 2 阅读全文
posted @ 2021-03-12 22:18 wsl-hitsz 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 三个线程顺序打印A,B,C #include<iostream> #include<thread> #include<mutex> #include <condition_variable> using namespace std; std::mutex mtx; std::condition_va 阅读全文
posted @ 2021-03-12 14:33 wsl-hitsz 阅读(105) 评论(0) 推荐(0) 编辑