摘要:
代码如下:#include "stdafx.h"#include "stdlib.h"#include #include int _tmain(int argc, char* argv[]){ char* buffer; // Get the current working directory: ... 阅读全文
摘要:
代码来源:http://blog.csdn.net/v_JULY_v调整堆为小顶堆的代码片:基本思想就是把孩子节点中大的一个跟父节点交换void HeapAdjust(int array[], int i, int Length){ int child, temp; for (temp = arra... 阅读全文