• Advertisement


This topic is now archived and is closed to further replies.

Quick Class Question (C++)

This topic is 5693 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm playing with linked lists using classes, and when I started making the "RemoveNode" function i started wondering something. Since the data nodes in the list are dynamicly allocated (using the 'new' op), when I use the 'delete' op to remove it, will that class's destructor still be called? I dont want memory leaks in my program! Thanks, -J [edited by - jason2jason on August 18, 2002 8:32:03 AM]

Share this post

Link to post
Share on other sites

  • Advertisement