[Solved] Program to overload < and > to compare two strings [closed]
There are different things that can be called strings in C++, std::string is the main one, and that already provides those operators. C-style null terminated strings are another, and string literals yet another. For the latter two, you cannot overload operator< or operator>, as you can only overload operators for user defined types. Even if … Read more