/******************************************************* Proj5.cpp CMSC-341 Spring 2004 Project5 Spencer Shimko, Section 001, sshimko1 Created: 28 April 2004 Current: 06 May 2004 Implement a Interval Heap based on a Binary Heap I have read and I understand the course policy on cheating. By submitting the following program, I am stating that the program was produced by my individual effort. *********************************************************/ using namespace std; #include #include #include #include "Proj5Aux.h" #include "IntervalHeap.h" // Begin main int main( int argc, const char* argv[] ){ // usage for command const char* USAGE = "Usage: ./Proj5 "; // queue of commands to run queue cmdQ; // Interval Heap IntervalHeap IH; if ( argc != 2 ){ cout << USAGE << endl; return 1; } // attempt to parse input file // modifies instruction vector if ( ! ( parseIFile ( argv[1], cmdQ ) ) ){ cout << "INVALID FILENAME!" << endl; cout << USAGE << endl; return 1; } cout << "PROJECT 5: INTERVAL HEAPS" << endl; while ( !cmdQ.empty() ){ run ( IH, cmdQ.front( ).c_str( ) ); cmdQ.pop(); } }