Nov 6, 2010 #1 A Antst New member Joined Jul 29, 2010 Messages 24 Reaction score 0 Points 1 Hi everyone: I'm confused about how to use a destructor/free memory in a 2D dynamic array class. If I define a destructor in the class, I don't have to write any code in main() to free the memory, right? It just happens automatically? Thanks for any help!
Hi everyone: I'm confused about how to use a destructor/free memory in a 2D dynamic array class. If I define a destructor in the class, I don't have to write any code in main() to free the memory, right? It just happens automatically? Thanks for any help!