-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathButterFactory.cpp
More file actions
36 lines (28 loc) · 977 Bytes
/
ButterFactory.cpp
File metadata and controls
36 lines (28 loc) · 977 Bytes
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
#include "ButterFactory.h"
#include <Windows.h>
void ButterFactory::setButterFatContent(int butterFatContent) {
this->butterFatContent = butterFatContent;
}
void ButterFactory::setButterShelfLife(int butterShelfLife) {
this->butterShelfLife = butterShelfLife;
}
int ButterFactory::getButterFatContent() {
return butterFatContent;
}
int ButterFactory::getButterShelfLife() {
return butterShelfLife;
}
void ButterFactory::print() {
Factory::print();
cout << "Æèðíîñòü ñëèâî÷íîãî ìàñëà: " << butterFatContent << endl;
cout << "Ñðîê ãîäíîñòè ñëèâî÷íîãî ìàñëà: " << butterShelfLife << endl;
}
void ButterFactory::produceButterPacks() {
cout << "(çâóêè ðàáîòû çàãóñòèòåëåé ìàñëà)";
for (int i = 0; i < 6; i++) {
Sleep(1000);
cout << ".";
}
cout << endl << "ÓÓÓ... òåïåðü íîâûé âèä ìàñëà Ùó÷ûíø÷ûíà ïîñòóïàåò ñ êîíâååðà è èìååò "
<< butterFatContent << "%-îâ æèðà è " << butterShelfLife << " äíåé ñðîêà ãîäíîñòè." << endl;
}