摘要:
堆(Heap)的C++实现1#include<iostream>2usingnamespacestd;34template<classT>5classHeap6{7private:8//hlistpointsatthearraywhichcanbeallocatedby9//theconstructor(inArray==0)orpassedasa10//parameter(inArray==1)11T*hlist;12intinArray;1314//maxnumberallowedandcurrentsizeofheap15intmaxheapsize;16inth 阅读全文