/**************************************************** * Executable: Drop_off_stack_driver * Author: Douglas Wilhelm Harder * Copyright (c) 2006-14 by Douglas Wilhelm Harder. All rights reserved. * * DO NOT EDIT THIS FILE * * Create an instance of the Drop_off_stack_tester * or Drop_off_stack_tester classes and call * the member function run(). * * The member function run() will interpret the * input appropriately and exit when the interpreter * receives either the command 'exit' or and * end-of-file. ****************************************************/ #include #include #include "Drop_off_stack_tester.h" int main( int argc, char *argv[] ) { if ( argc > 2 ) { std::cerr << "Expecting at most one command-line argument" << std::endl; return -1; } std::cout << "Starting Test Run" << std::endl; if ( argc == 1 || !std::strcmp( argv[1], "int" ) ) { if ( argc == 1 ) { std::cerr << "Expecting a command-line argument of either 'int' or 'double', but got none; using 'int' by default." << std::endl; } Drop_off_stack_tester tester; tester.run(); } else if ( !std::strcmp( argv[1], "double" ) ) { Drop_off_stack_tester tester; tester.run(); } std::cout << "Finishing Test Run" << std::endl; return 0; }