initial work on app client tutorial

This commit is contained in:
Peter Thorson
2013-11-25 08:16:14 -06:00
parent f05f18b384
commit 87cb5036a4
4 changed files with 190 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#include <iostream>
#include <string>
int main() {
bool done = false;
std::string input;
while (!done) {
std::cout << "Enter Command: ";
std::getline(std::cin, input);
if (input == "quit") {
done = true;
} else if (input == "help") {
std::cout
<< "\nCommand List:\n"
<< "help: Display this help text\n"
<< "quit: Exit the program\n"
<< std::endl;
} else {
std::cout << "Unrecognized Command" << std::endl;
}
}
return 0;
}