Make a class template to create an instance of a desired class and in the destructor of the class template, delete the item the pointer points to.
In this way, the programmer won't have to worry about freeing the memory.
Author :Kunal
Monday, February 23, 2009
Subscribe to:
Post Comments (Atom)
0 nhận xét:
Post a Comment