I guess this is just a *program* problem, not even including any algorithm problem. Even from viewer of c++ programmer, I think you should refer any classic c++ tutorial for it, instead of asking it online. It is an interview problem, and it can be find on any c++ book. Just use some time to find it.
On Wed, Nov 4, 2009 at 7:08 PM, yash <[email protected]> wrote: > write a program for "catlog " catlog contain subcatlog or product . > we can futher expand catlog/subcatalog. product is leaf of catalog > [like composite pattern] > > 1. write a c++ program to display the product on basis of product id. > write a copy constucter and assingement operator for catalog class > > > > example > Business > / \ > Compurter Cloths > / \ \ > monitor(product) sell shirt(prodcut > > > [business,computer,cloths,sell are catalog] > [monitor and shits are product] > > -- > > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
