-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCoffee.h
More file actions
103 lines (94 loc) · 1.34 KB
/
Coffee.h
File metadata and controls
103 lines (94 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#ifndef COFFEE_H
#define COFFEE_H
enum CoffeeKind
{
Mocha=0,//摩卡
Latte=1,//拿铁
Cappuccino=2,//卡布基诺
Americano=3,//美式咖啡
Espresso=4,//意式咖啡
Milkcoffee=5,//奶咖
Foam=6//奶沫
};
enum BottleSize
{
Small=0,
Middle=1,
Large=2
};
class Coffee
{
private:
CoffeeKind CK;
BottleSize BS;
// int BottleNum;
bool Suger;
// int Concentration;
public:
Coffee();
void SetCoffeeKind(CoffeeKind a);
CoffeeKind GetCoffeeKind();
void SetBottleSize(BottleSize a);
BottleSize GetBottleSize();
// void SetBottleNum(int a);
// int GetBottleNum();
void SetSuger(bool a);
bool GetSuger();
// void SetConcentration(int a);
// int GetConcentration();
};
Coffee::Coffee()
{
CK=Mocha;
BS=Small;
BottleNum=1;
Suger=false;
Concentration=30;
}
/*
int Coffee::GetBottleNum()
{
return BottleNum;
}
*/
BottleSize Coffee::GetBottleSize()
{
return BS;
}
CoffeeKind Coffee::GetCoffeeKind()
{
return CK;
}
bool Coffee::GetSuger()
{
return Suger;
}
/*
int Coffee::GetConcentration()
{
return Concentration;
}
void Coffee::SetBottleNum(int a)
{
BottleNum=a;
}
*/
void Coffee::SetBottleSize(BottleSize a)
{
BS=a;
}
void Coffee::SetCoffeeKind(CoffeeKind a)
{
CK=a;
}
void Coffee::SetSuger(bool a)
{
Suger=a;
}
/*
void Coffee::SetConcentration(int a)
{
Concentration=a;
}
*/
#endif // COFFEE_H