fixing project

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;
}

}

Thanks for installing the Bottom of every post plugin by Corey Salzano. Contact me if you need custom WordPress plugins or website design.