摘要: 堆(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 阅读全文
posted @ 2012-07-14 21:34 Keosu 阅读(2172) 评论(0) 推荐(1) 编辑