3 ElevatorGUI *thegui = NULL;
5 int main (int argc, char *argv[])
10 #define USE_STATIC_FLOORS 1
11 #ifndef USE_STATIC_FLOORS
14 std::cout << "Enter the number of floors to use [2-10]: ";
17 if (floors < 2 || floors > 10)
19 std::cout << "You entered: " << floors
20 << " which is outside the acceptable range." << std::endl;
21 std::cout << "Please try again..." << std::endl << std::endl;
25 // Good input, leave now
32 std::cout << "Enter the number of elevators to use [1-5]: ";
33 std::cin >> elevators;
35 if (elevators < 1 || elevators > 5)
37 std::cout << "You entered: " << elevators
38 << " which is outside the acceptable range." << std::endl;
39 std::cout << "Please try again..." << std::endl << std::endl;
43 // Good input, leave now
50 Gtk::Main app(argc, argv);
53 ElevatorGUI eg(floors, elevators);
65 /* vim: set ts=4 sts=4 sw=4 noet tw=112: */