0

Data structures

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

30th Nov 2017, 7:04 PM
JustALearner
JustALearner - avatar
1 Respuesta
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
30th Nov 2017, 7:54 PM
Scatoogle