i am supposed to split a string like krishnamoorthy into krishna and moorthy using operator overloading.i am unable to strike upon the logic to write a program.can u pls help me?

First figure out how to split the string then worry about how to write the overload operator.

What kind of string -- character array or std::string? How are you supposed to know where to split the string? Is there something in the string that is supposed to tell you where to split it? For example: where would you split this string: "How now brown cow" or "Once upon a time there were three little pigs".

Maybe you need to post the exact requirements of your assignment.

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.