Advertisement
Guest User

Untitled

a guest
Nov 16th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #ifndef STOCK_H
  2. #define STOCK_H
  3. #include <string>
  4.  
  5. using namespace std;
  6.  
  7. class Stock
  8. {
  9. public:
  10. Stock();
  11. friend ostream& operator<< (ostream& out,Stock a);
  12.  
  13. protected:
  14. string Item [10] = {"Cheetos","Doritos","Chips","Cola can","Pepsi can","Chocolate","Snickers","Twix","Ulker","Waver"};
  15. int Amount[10] = {10,10,10,10,10,10,10,10,10,10};
  16. double price [10] = {4,5,7.5,4,4,6.5,8.5,7,2.5,10};
  17.  
  18. };
  19.  
  20. #endif // STOCK_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement