摘要:        
只是把以前的写的代码贴出来而已#ifndef HEAP_H#define HEAP_Hvoid HeapSort(int* a,int arraySize);void BuildHeap(int* a,int arraySize);void ShiftUp(int* a, int index);void ShiftDown(int* a,int startIndex,int endIndex);void Swap(int& x,int& y);void PrintHeap(int* a,int arraySize);#endifHeap.cpp#include "He    阅读全文
posted @ 2012-09-17 14:51
_Lei
阅读(657)
评论(0)
推荐(0)
        
                    
                

浙公网安备 33010602011771号