assign6_s_f88/ProductInventory.cpp
/*****************************************************************************
 showInventory: displays all of inventory
 returns: NO RETURN Void Function
 ****************************************************************************/
displays all of inventory
returns: NO RETURN Void Function
displays all of inventory returns : NO RETURN Void Function
void ProductInventory::showInventory()
{
    ProductNode *p = productList;  
    while (p!=NULL)
    {
        cout << p->data.getLocator() << "  "
        << p->data.getQuantity() << "  $"
        << setprecision(2) << fixed
        << p->data.getPrice() << "  "
        << setprecision(1) << fixed
        << p->data.getProductName() << endl;
        p = p->next;
    }
    cout << endl;
}
void ProductInventory :: showInventory ( ) { ProductNode * p = productList ; while ( p != NULL ) { cout << p -> data . getLocator ( ) << " " << p -> data . getQuantity ( ) << " " << setprecision ( 2 ) << fixed << p -> data . getPrice ( ) << " " << setprecision ( 1 ) << fixed << p -> data . getProductName ( ) << endl ; p = p -> next ; } cout << endl ; }
showInventory: displays all of inventory
returns: NO RETURN Void Function
showInventory : displays all of inventory returns : NO RETURN Void Function
//points to head
