酒吧管理系统!!有简单基本功能
源代码在线查看: gold.cpp
//Gold.cpp
#include
#include
#include
#include"Counter.h"
#include"Vip.h"
#include"Gold.h"
Gold::Gold(int t,const long c,double a):Vip(t,c)
{
double d=0.85;
gdiscount=d;
counting(a);
}
double Gold::counting(double a)
{
actualityexpense=a;
finalexpense=gdiscount*actualityexpense;
return finalexpense;
}
void Gold::upgrade(double f)
{
f=finalexpense;
char c;
int a;
srand(time(0));
a=rand()%100000;
if(f>=1800) {cout cin>>c;
switch(c)
{case'y':cout cout break;
case'n':cout
};
}
else cout }
void Gold::print()const
{
Vip::print();
cout cout }