-
Notifications
You must be signed in to change notification settings - Fork 0
/
Item.h
35 lines (34 loc) · 937 Bytes
/
Item.h
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
#ifndef ITEM_H
#define ITEM_H
#include<iostream>
#include<fstream>
#include<string>
#include<sstream>
#include<stdlib.h>
#include<iomanip>
#include "Hoadon.h"
using namespace std;
class Item{
private:
string maItem;
string tenItem;
int price;
public:
Item(){}
friend std::ostream& operator <<(std::ostream & ,const Item &);
friend std::istream& operator >>(std::istream &,Item &);
void setmaItem(string maIteam);
string getmaItem();
void setTenItem(string tenItem);
string getTenItem();
void setPrice(int price);
int getprice();
friend bool check_exist(const Item &x);
friend int getInfo(Item*);
friend void displayx(Item*p,string x);
friend void display(Item*);
friend void Add(Item*);
friend void Delete(Item*);
friend int check_maItem(Item *p,string ma);
};
#endif