Quote:Ohh excellent, thats what I was missing. I have it working now, thanks a lot iMalcI asked way back here:
Quote:Meanwhile, I think the first question you'll want to ask yourself is: why are you using dynamic allocation?(And Zahlman asked this again in the above post.)
Learning how to use pointers correctly is important (IMO), but of equal importance is learning when to use pointers (and when not to). It's good that you got it working, but I still think you could benefit from asking yourself why dynamic allocation is necessary at all in this particular case.