摘要: // 12:06 PM/09/28/2017 #pragma once //向下调整算法 主要用来make_heap 以及pop_heap inline void adjustDown(int* heap, const int first, const int last) { if (last == first + 1)return; int value = heap[first... 阅读全文
posted @ 2017-09-28 14:08 Lucky、Dog 阅读(244) 评论(0) 推荐(0) 编辑
摘要: // 8:15 AM/09/28/2017 #pragma once #include // std::cout #include // std::thread #include // std::mutex #include using namespace std; volatile int counter(0); volatile int ... 阅读全文
posted @ 2017-09-28 10:59 Lucky、Dog 阅读(182) 评论(0) 推荐(0) 编辑