#include #include #include #include "book.h" #include "compare.h" #include "maxheap.h" template void heapsort(Elem A[], int n) { // Heapsort Elem mval; maxheap H(A, n, n); // Build the heap for (int i=0; i void sort(Elem* array, int n) { heapsort(array, n); } #include "sortmain.cpp"