Page 498 - C++
P. 498

Online Shopping
            A project to keep record of selling cart and billing.

            struct date
            {
                   int dd,mm,yy,time_slot;
            };
            struct Item
            {
                   int item_no;
                   char Description[20],remark[30], category[30],company[30];
                   int quantity;
                   float price;
            };
            class ItemList
            {
                   Item I;
                   public:
                   void IGetdata();
                   void IDisplaydate();
                   int Return_item_no{  return I..item_no;    }
                   char *Return_category(){     return I.category;   }
                   void Sell_Quantity(int q)
                   {
                          I.quantity+=q;
                   }
                   void Purchase_Quantity(int q)
                   {
                          I.quantity-=q;
                   }

            };
            class Selling_cart
            {
                   Item I[20];
                   date tans_date;
                   float Bill_ant,dis_amt;
                   char mode[10],cnumber[20],ctyep[30];
                   public:
                   void IGetdata();
                   void IDisplaydate();
                   };
   493   494   495   496   497   498   499   500   501   502   503