0
Data structures
how do you implement a "destroy" method for a doubly linked list?
1 Antwort
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