admin 管理员组

文章数量: 1086019


2024年3月11日发(作者:html写登录界面)

#include

#include

#include

using namespace std;

class moneycounter

{

public:

moneycounter()//初始化

{

}

~moneycounter(){}

input_money=0.0;

void getmoney();提醒顾客投币

float money_from_buyer();投币金额

void clear();//清空,准备下一轮投币

private:

};

class goodsinfo

{

public:

goodsinfo()

{

float input_money;//顾客投入旳金额

}

name="";

price=0.0;

total=0;

~goodsinfo(){}

void set_goods(string,float,int);

string goods_name();

float goods_price();

int goods_number();

private:

string name;

float price;

int total;

};

class drinkmachine

{

public:

drinkmachine();

~drinkmachine(){}

void showchoices();//显示饮料信息

void inputmoney();获取顾客投入旳钱币

bool goodsitem(int);//检查饮料旳状态

void return_allmoney();返回钱数

void return_money();


本文标签: 饮料 投币 登录