Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
step1.cpp File Reference
#include <iostream>
#include <string>
Include dependency graph for step1.cpp:

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( void )

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}