fixing project

profileabusbit

i have my code for the project and it has one problem only 

the problem in the print function 

first of all, the following should be a pointer in Customer class:

Product *item;
 
Now, the Print function, in general, should look something like this:
 
void Print(Customer *h)
{
while(h)
{
//here you should print all the details of a customer
Product * p = h->item;
while(p)
{
//here you should print a product's details
//move to the next product as below:
p=p->next;
}
//move to the next customer as below:
h=h->next;
}

}
  • 13 years ago
  • 20
Answer(1)

Purchase the answer to view it

blurred-text
NOT RATED
  • attachment
    c_answer.txt
Bids(0)
other Questions(10)