Data structures | SoloLearn: Learn to code for FREE!

0

Data structures

how do you implement a "destroy" method for a doubly linked list?

c++

11/30/2017 7:04:06 PM

JustALearner

1 Answer

New Answer

0

If you're asking how do you clean up a linked list? You need to iterate through your list and and "delete" your nodes. You need to make sure you implement your destructors in your classes. Sorry for the short description. Here's a link to the delete operator documentation: https://msdn.microsoft.com/en-us/library/h6227113.aspx Here is a link to Destructor documentation: https://msdn.microsoft.com/en-us/library/6t4fe76c.aspx