#include <iostream>
#include <string>
Go to the source code of this file.
◆ main()
Definition at line 34 of file step1.cpp.
34 {
35 bool done = false;
36 std::string input;
37
38 while (!done) {
39 std::cout << "Enter Command: ";
40 std::getline(std::cin, input);
41
42 if (input == "quit") {
43 done = true;
44 } else if (input == "help") {
45 std::cout
46 << "\nCommand List:\n"
47 << "help: Display this help text\n"
48 << "quit: Exit the program\n"
49 << std::endl;
50 } else {
51 std::cout << "Unrecognized Command" << std::endl;
52 }
53 }
54
55 return 0;
56}