#include using namespace std; class MemHeapErr { }; // #include "memlink.h" template class MemHeap1 { private: #include "memheap-data.h" public: #include "memheap-create.h" ~MemHeap1() { delete[] array; length = 0; } #include "memheap-alloc.h" int capacity() { return length; } int used() { return start; } };