[try Beta version]
Not logged in

 
Destructor in list

May 21, 2017 at 10:16am
Why do we need a destructor that delete all elments in the implementation of a list?

May 21, 2017 at 12:15pm
If you have created something with new you need to destroy it with delete otherwise you'll have a memory leak.
May 21, 2017 at 3:29pm
thank you!!
Topic archived. No new replies allowed.