Copy Ctor and assignment operator C++

Started by
9 comments, last by Zakwayda 14 years, 6 months ago
Quote:Ohh excellent, thats what I was missing. I have it working now, thanks a lot iMalc
I 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.

This topic is closed to new replies.

Advertisement