void Exercise6() { Shop_Struct Shop; std::string input; while (true) { New("6"); std::cout << "What would you like to do?" << std::endl << std::endl << "a. Change the price of an item" << std::endl << "b. Buy additional stock for an item" << std::endl << "c. Sell stock to gain more gold" << std::endl << "d. Exit shop" << std::endl << std::endl << "Input: "; getline(std::cin, input); if ((input == "a")||(input == "a.")) while (Pricing(Shop)) {} if ((input == "b") || (input == "b.")) while (Buy(Shop)) {} if ((input == "c") || (input == "c.")) while (Sell(Shop)) {} if ((input == "d") || (input == "d.")) break; } }
void DrugStorageManagement::initUI() { Storage(); Allot(); Inventory(); Check(); Pricing(); Statistics(); }