diff --git a/CM2005 Object Oriented Programming/Topic 4/4.4.3/MerkelMain.cpp b/CM2005 Object Oriented Programming/Topic 4/4.4.3/MerkelMain.cpp index d5e9563..a79178d 100644 --- a/CM2005 Object Oriented Programming/Topic 4/4.4.3/MerkelMain.cpp +++ b/CM2005 Object Oriented Programming/Topic 4/4.4.3/MerkelMain.cpp @@ -3,6 +3,7 @@ #include #include "OrderBookEntry.h" #include "CSVReader.h" +#include MerkelMain::MerkelMain() { @@ -29,16 +30,14 @@ void MerkelMain::printMenu() // 2 print exchange stats std::cout << "2: Print exchange stats" << std::endl; // 3 make an offer - std::cout << "3: Make an offer " << std::endl; + std::cout << "3: Make an ask " << std::endl; // 4 make a bid std::cout << "4: Make a bid " << std::endl; // 5 print wallet std::cout << "5: Print wallet " << std::endl; // 6 continue std::cout << "6: Continue " << std::endl; - std::cout << "============== " << std::endl; - std::cout << "Current time is " << currentTime << std::endl; } @@ -76,7 +75,11 @@ void MerkelMain::printMarketStats() void MerkelMain::enterAsk() { - std::cout << "Make an ask - enter the amount " << std::endl; + std::cout << "Make an ask - enter the amount (product, price, amount. e.g. 'ETH/BTC, 200, 0.5)': " << std::endl; + std::string input; + std::cin.ignore(std::numeric_limits::max(), '\n'); + std::getline(std::cin, input); + std::cout << "You typed: " << input << std::endl; } void MerkelMain::enterBid() diff --git a/CM2005 Object Oriented Programming/Topic 4/4.4.3/a.exe b/CM2005 Object Oriented Programming/Topic 4/4.4.3/a.exe index 0702a22..e210dad 100644 Binary files a/CM2005 Object Oriented Programming/Topic 4/4.4.3/a.exe and b/CM2005 Object Oriented Programming/Topic 4/4.4.3/a.exe differ