-
Notifications
You must be signed in to change notification settings - Fork 0
/
Items.cpp
53 lines (40 loc) · 866 Bytes
/
Items.cpp
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
#include<iostream>
#include<vector>
#include<string>
using namespace std;
class Item {
private:
long long unsigned code;
string n;
float r;
int q;
public :
Item(long long unsigned,string,float,int);
};
Item::Item()
class Items {
/*private :
long long unsigned item_code;
string name;
float rate;
int quantity;
static long long unsigned item_code_vector[1000];
static int count;
int check_uniqueness(long long unsigned);
bool check_existance();
public :
Items(long long unsigned,char*,float);
Items(void);
void update_rate(float);
void update_quantity(bool);
*/
private :
vector<long long unsigned> item_code;
vector<string> name;
vector<float> rate;
vector<int> quantity;
public :
void add_new_Item(Item);
void change_item_rate(long long unsigned,float);
void update_quantity();
};