Can you help me find the errors with this code:
class MyClass
{
private:
char * pcMyString;
MyClass( MyOldClass oOld ) { pcMyString = new char[strlen(oOld.pcMyOldString)]; };
MyClass( MyClass * oObj ) { pcMyString = oObj->pcMyString; poMyOld = oObj->poMyOld; };
void calcOffset_Helper() const;
public:
MyOldClass * poMyOld;
bool isStringEmpty() const;
void showString() const;
void reverseString() const;
~MyClass() {};
};
I need to find the errors, but I can't see anyone