正在加载图片...
9.3 Heaps class M ahEap Data member of heap T* heap; int MaxSize, currentsize template<class T>class Maxheap i public MaxHeap(int MaxHeap Size=10); MaxHeapoidelete[heap int sizeOconst(return currentsize9.3 Heaps 2.class MaxHeap Data member of heap: T * heap; int MaxSize, currentSize template<class T>class Maxheap { public: MaxHeap(int MaxHeapSize=10); ~MaxHeap(){delete[]heap;} int size()const{return currentSize;}
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有