2010_F18/wk13/lab13.txt
The purpose of this assignment is to understand why memberwise assignment will not work with classes that contain pointers as member variables. In addition, to understand how a memory leak will could occur if we omit the definition for a copy constructor, overloaded assignment operator, and a destructor for such classes.
lab13.cppFor this lab you will copy, compile, and run the given source code
and answer the embedded questions within the source code in the file
lab13.txt
. Open three terminals, one to view the source code,
one to view the executed output, and one for your lab13.txt write up.
Have all the files above in your depository directory
2010_F18/wk13/