-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVendUser.hpp
45 lines (40 loc) · 1.04 KB
/
VendUser.hpp
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
/*
*/
#include <iostream>
#include <string.h>
#include <vector>
//#pragma once
#ifndef VENDUSER_H
#define VENDUSER_H
class VendUser
{
public:
/// constructors ///
VendUser(std::string location, std::string name);
VendUser();
/// public functions ///
void listMenu();
void refill();
void calculateProfit();
/// destructor ///
~VendUser();
private:
/* data */
///////////////////////////////////
double balance, profit, change; // current balance in machine, lifetime profit, change in machine
///////////////////////////////////
int coke, ale, sprite;
int mars, caramilk, snickers;
int gummybag, fruitbag, gummywork;
///////////////////////////////////
int coke_ref, ale_ref, sprite_ref;
int mars_ref, cara_ref, snick_ref;
int gumy_ref, frut_ref, worms_ref;
///////////////////////////////////
std::vector<std::string> items;
std::vector<double> prices;
std::vector<std::string> keycode;
///////////////////////////////////
std::string name;
};
#endif