First page Back Continue Last page Graphics
So, what happened?
2
Aborting programs or garbled output.
The implicit copy constructor copies by value. When you copy a char * str you only copy the pointer to the start of the string, not the string itself. AND, the destructor will perform an undefined operation.