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 pointer then
> but now its driving me crazy.

Why are you rolling your own list?  Use one of the many pre-defined 
templates out there.  Your compiler even has one called 'list'.  IMO, 
not as intuitive as Safe C++ List, but you need to have a pretty good 
reason to NOT use it.

If your teacher is asking for you to implement a linked list, then the 
senior members here on c-prog would love to talk to him/her. 
Re-inventing the wheel is pointless and a waste of time.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to