static void Main(string[] args) { MinIntHeap heap = new MinIntHeap(); heap.add(15); heap.add(10); heap.add(12); Console.ReadLine(); }
static void Main(string[] args) { Console.WriteLine("Adding 10, 15, 20, 17 and 25 to Heap!"); var theHeap = new MinIntHeap(); theHeap.add(10); theHeap.add(15); theHeap.add(20); theHeap.add(17); theHeap.add(25); Console.WriteLine("Print Heap!"); for (int i = 0; i < theHeap.size; i++) { Console.WriteLine(theHeap.items[i]); } }