#ifndef ORDERITEM_H #define ORDERITEM_H class OrderItem { friend unsigned int ItemCost(OrderItem& item) ; public: OrderItem(); OrderItem(unsigned int sku, unsigned int price); void PrintItem() ; // print out sku, price & quantity void AddOne() ; // increase quantity void RemoveOne() ; // decrease quantity, check for zero! protected: unsigned int m_sku ; // SKU = Stock Keeping Unit // http://en.wikipedia.org/wiki/Stock_Keeping_Unit unsigned int m_price; // price of this item unsigned int m_quantity; // number of this item ordered } ; // Compute the cost of the item unsigned int ItemCost (OrderItem& item) ; #endif