コード例 #1
0
ファイル: Source.cpp プロジェクト: bennybroseph/Homework
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;
	}
}
コード例 #2
0
void DrugStorageManagement::initUI()
{
	
    Storage();
    Allot();
	Inventory();
	Check();
	Pricing();
	Statistics();
}