i uploaded the header file and cpp file to httpwwwfilehostin
i uploaded the header file and cpp file to http://www.filehosting.org/file/details/614245/heap_Q.zip
you can send a link after uploading it to a website, that\'ll be fine.
thank you!
Solution
void adjustHeap(int index)
 {
 int l = 2*index+1;
 int r = 2*index+2;
 int small_d = index;
 if (l < h_size && heap[l] < heap[i])
 small_d = l;
 if (r < h_size && heap[r] < heap[small_d])
 small_d = r;
 if (small_d != index)
 { int temp = heap[i];
 heap[i] = heap[small_d];
 heap[small_d] = temp;
adjustHeap(small_d);
 }
 }

