Advertisement
MUstar

IoT C++ 09/14 - Product_Product.h

Sep 14th, 2017
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include<iostream>
  2.  
  3. class Product
  4. {
  5. private:
  6.     enum {MAX=500};
  7.     char name[MAX][100];
  8.     int price[MAX];
  9.     int assessment[MAX];
  10.     int cnt;
  11. public:
  12.     Product();
  13.     int add(char add_name[100],int add_price,int add_assessment);
  14.     void del(int delnum);
  15.     void getInfo(int num);
  16.     void compare(int stuff1,int stuff2);
  17.     bool isBetter(const Product &another);
  18.     void print();
  19.     int tmp;
  20. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement