// Heap.cpp - wdg 2008
#include "Heap.h"
Heap::Heap( ) : count(0)
{
}
void Heap::insertItem(ItemType newVal)
{
int bubble = count;
int parent = (bubble-1)/2; // round down
while( bubble>0 && newValA[left]) ||
( right < count && bubbleVal>A[right] ) )
{
int smallerChild = left;
if( right < count && A[right]