// main(): Test driver for OOP Implementation of a heap and the heap sort
void main(void)
{
int n;
cout << “\nEnter the number of elements to be sorted: “;
cin >> n;
// Declare and initialize an object of “Heap” class
Heap heap_obj(n);
// Array of data elements to be sorted
static DATA_TYPE A[ ] = {33,60,5,15,25,12,45,70,35,7};
cout << “Unsorted array is : \n”;
for (int i=0; i<n; i++)
cout << A[i] << “ “;
cout << “\n\n”;
heap_obj.Heap_Sort (A);
heap_obj.Print_Heap();
}