assign6_s_f88/ProductInventory.cpp
/*****************************************************************************
 getTotal: adds the quantity of all products
 returns: sum of all quantity
 ****************************************************************************/
adds the quantity of all products
returns: sum of all quantity
adds the quantity of all products returns : sum of all quantity
int ProductInventory::getTotalQuantity()
{
    double total = 0;               
    ProductNode *p = productList;   
    while (p!=NULL)
    {
        total += p->data.getQuantity();
        p = p->next;
    }
    return total;
}
int ProductInventory :: getTotalQuantity ( ) { double total = 0 ; ProductNode * p = productList ; while ( p != NULL ) { total += p -> data . getQuantity ( ) ; p = p -> next ; } return total ; }
getTotal: adds the quantity of all products
returns: sum of all quantity
getTotal : adds the quantity of all products returns : sum of all quantity
//running total of quantity for inventory
 //points at head
