|
Yes, the destructor looks ok now.
As for your constructor, you will not be able to use an initialization list in this case. Remember, the pointer just points. You have not set what it will be pointing to yet. Therefore you can't set the values to what it points to either. I hope I'm not giving it away.
Think about why you delete something (tmpPtr). Now think of another keyword that might shed some light on this. And you are correct that it will just 'point' to the head of the list, however this is still a pointer!
Doing great!
-Ted
__________________
while(1) fork();
|