diff --git a/CM2005 Object Oriented Programming/Topic 1/1.3.7/main.cpp b/CM2005 Object Oriented Programming/Topic 1/1.3.7/main.cpp new file mode 100644 index 0000000..c780524 --- /dev/null +++ b/CM2005 Object Oriented Programming/Topic 1/1.3.7/main.cpp @@ -0,0 +1,42 @@ +#include + +int main(int argc, char const *argv[]) +{ + int userOption; + while(true) + { + std::cout << "1: Print help" << std::endl; + std::cout << "2. Print exchange stats" << std::endl; + std::cout << "3: Place an ask" << std::endl; + std::cout << "4: Place a bid" << std::endl; + std::cout << "5: Print wallet" << std::endl; + std::cout << "6: Continue" << std::endl; + std::cout << "Type in 1-6" << std::endl; + std::cin >> userOption; + if(userOption == 1) + { + std::cout << "Pressed 1" << std::endl; + } + if(userOption == 2) + { + std::cout << "Pressed 2" << std::endl; + } + if(userOption == 3) + { + std::cout << "Pressed 3" << std::endl; + } + if(userOption == 4) + { + std::cout << "Pressed 4" << std::endl; + } + if(userOption == 5) + { + std::cout << "Pressed 5" << std::endl; + } + if(userOption == 6) + { + std::cout << "Pressed 6" << std::endl; + } + } + return 0; +} diff --git a/CM2005 Object Oriented Programming/Topic 1/1.3.7/merkelrex.exe b/CM2005 Object Oriented Programming/Topic 1/1.3.7/merkelrex.exe new file mode 100644 index 0000000..84fef92 Binary files /dev/null and b/CM2005 Object Oriented Programming/Topic 1/1.3.7/merkelrex.exe differ