View Single Post
  #1  
Old 12-10-2009, 04:40 PM
EnvisMJ EnvisMJ is offline
Member
 
Join Date: May 2009
Location: Purdue University, West Lafayette, Indiana
Posts: 44
How do I run a destructor before the end of the program?

I am writing a program that is basically just a bunch of critters running around.
I can create them fine...but how do I run the destructor on them when they die without waiting till the end of the program?
Reply With Quote