Hello everybody!
Please help me.
Hello everybody!
Please help me.
Sorry!
It is just a mistake.
I want to know how to overload the logical operators !, && and ||.
I have to do assignment regarding operator overloading and I have written other operators except that 3 operators.
Please show me an example.
I have to do right now. So please help me now.
I understand I should not say like that.
But I really need your help instantly.
Please help me.
Here the .h file
class X
{
public:
...
bool operator ! ();
}
bool operator && (X const &lhs, X const &rhs);
bool operator || (X const &lhs, X const &rhs);
Implementation in the .cpp file left for you.....
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.