Hi, I've got a problem a problem in overloading operator=. Well, I have little experience in overloading operators. How do I overload = operator from a different type of class?
I've made this:
But the code is faulty. Can you help me please?Code:inline CBitmapString& operator=(const string theString) { mString=theString; mLength=countLength(); return *this; }