// elevatorSimulation.cpp // Driver for the simulation. #include using std::cout; using std::cin; using std::endl; #include "building.h" int main() { int duration; // length of simulation in seconds cout << "Enter run time: "; cin >> duration; cin.ignore(); // ignore return char Building office; // create the building cout << endl << "*** ELEVATOR SIMULATION BEGINS ***" << endl << endl; office.runSimulation( duration ); // start simulation cout << "*** ELEVATOR SIMULATION ENDS ***" << endl; return 0; }