Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Shopping-H

#ifdef SHOPPING_CART_H
#define SHOPPING_CART_H
#include <string>

using namespace std;
#include "ItemtoPurchase.h"
class shoppingCart{
    public:
    shoppingCart()
    shoppingCart(stringname,stringdate);
    stringGeCustomerName()const;
    "Customer Date";
void AddItem(ItemtoPurchaseItem);
void RemoveItem(string name);

void ModifyItem(ItemtoPurchaseItem);
int GetNumItemsInCart();
double GetCostofCart();

void PrintTotal();
void PrintDescription();

    private:
    string CustomerName;
    string CurrentDate;
    vector <ItemtoPurchase> CartItems;
};
#endif

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.