: Give at least two problems that we should check when we overloading assignemts oprater ("=") in string class?

What do you mean by problems ?

@sami9356: We don't appreciate it much when people simply copy-paste their assignment questions to this forum. You are unlikely to simply get an answer. The answer to your question can be found within some explanations of how to correctly and efficiently implement an assignment operator, here are a few tutorials on that: here, here and here. The two problems to check for are mentioned in all three articles, if you read them, you will find your answer.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.