Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- class Product
- {
- private:
- enum {MAX=500};
- char name[MAX][100];
- int price[MAX];
- int assessment[MAX];
- int cnt;
- public:
- Product();
- int add(char add_name[100],int add_price,int add_assessment);
- void del(int delnum);
- void getInfo(int num);
- void compare(int stuff1,int stuff2);
- bool isBetter(const Product &another);
- void print();
- int tmp;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement