C++ newbie question: how to use a destructor/free memory in a 2D dynamic array class?

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!
 
Back
Top