MUstar

IoT C++ 09/14 - Product_Product.h

Sep 14th, 2017
101
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. };
RAW Paste Data