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();
版权声明:本文标题:自动售货机源代码课程设计 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/p/1710093172a557388.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论