koodeta

StoreInfo.h

May 8th, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. #ifndef STOREINFO_H
  2. #define STOREINFO_H
  3. #include <string>
  4. using namespace std;
  5.  
  6.  
  7. // Global enum so it doesnt have to be scoped all over the place
  8. typedef enum TaxCategory { alcohol, food, genMerchandise, medicine } TaxCategory;
  9.  
  10. struct GrListItem{
  11. public:
  12.     string name;
  13.     int quantity;
  14.     float regPrice;
  15.     float salePrice;
  16.     bool onSale;
  17.     TaxCategory taxCategory;
  18.     // Receipt information
  19.     string storeName;
  20.     string storeAddress;
  21. };
  22.  
  23. class GrItem{
  24. public:
  25.     // Constructor
  26.     GrItem(string, int, float, float, bool, TaxCategory);
  27.     GrItem();// Default constructor
  28.  
  29. };
  30. #endif
Advertisement
Add Comment
Please, Sign In to add comment