I am having a serious issue with this. It works and does what it is suppose to do but the object that is created using it doesn't seem to agree with my destructor at the end of the program. Also if I try and make an object created with the default constructor = to some other object i get and error when the program hits the delet [] productDescription. If i use my overloaded >> operatpor or my setters to set the data members of the object created with the default constructor everything runs fine until the very end when my destructor runs.
The error is as follows:
HEAP CORRUPTION DETECTED: after Normal block (#163) at 0x03249D0.
CRT detected that the application wrote to memory after end of heap buffer.