allistairhaughton wrote: > The aim of the program is to design an online shopping network > allowing shoppers to view available products and add or remove them > from their shopping cart. The cart must be a queue (item entered at > the back, removed at the front only). > > I have been working on this program for the past 3 weeks and every > time I think I correct something, something else goes wrong. > > I am in college, now doing C++. I did C last year and got through as > one of the top programmers but had a little problem with pointers then > but now its driving me crazy.
Forgot to mention: We are going to need more details on the program requirements itself. Pointers are an advanced concept taught WAY too early in courses. It can take several years of programming before a person is ready to understand them and how they work. For an alternate view of pointers that may help you understand them better, take a look at Safe C++ Design Principles (free e-book for c-prog members, see Links section), Chapter 3 on Memory. Specifically read the "Pointers and Magical Memory" section. It is, perhaps, the simplest explanation and one that seems to work when all the typical pictogram explanations fail. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
