Imperative programming: Difference between revisions

Content deleted Content added
I've added the releasing of allocated heap memory using the "new" with its corresponding "delete" operator. Otherwise, memory leaks would happen.
m C++: Typo correction.
Line 462:
<< "\n";
 
// deallocate sutdentstudent's memory
// to avoid memory leaks.
// -------------------------------------------------