Thanks for the additional help guys, but, I seem not to be able to grasp how to write this copy constructor or assignement operator for the program. No worries though, it was just an exercise I was trying to make from a book.
Why I wanted to do it the way I described is because it was written that way in that book and with that code, I had to write them. Suppose like you've said, there are better ways to solve this, though, would have like to be able to solve it the way it was asked in that book.
Darn, so frustrating from time to time when you can't seem to grasp how the hell that piece of code is supposed to fit into that program :rolleyes:
I'll put it aside and return to it again when I understand the meaning of it all abit better because for instance, to me, it seems a copy constructor and an assignement operator are the same thing. Difference I seem to see is that a copy constructor make a deep copy in wich it gives the object it's own adress and an assignement operator gives one object the value of another object, wich is the same as copying right
Pfff, so confusing from time to time :o