#include <iostream>
using namespace std;
class Person
{
int a;
public:
Person(){}
Person(int a):a(a)
{}
bool operator>(const Person &R) const
{
if(a>R.a)
return true;
else
return false;
}
bool operator>=(const Person &R) const
{
if(a>=R.a)
return true;
else
return false;
}
bool operator<(const Person &R) const
{
if(a<R.a)
return true;
else
return false;
}
bool operator<=(const Person &R) const
{
if(a<=R.a)
return true;
else
return false;
}
bool operator==(const Person &R) const
{
if(a==R.a)
return true;
else
return false;
}
bool operator!=(const Person &R) const
{
if(a!=R.a)
return true;
else
return false;
}
};
int main()
{
Person p1(3);
Person p2(6);
if(p1>p2)
{
cout << "p1>p2" << endl;
}
else if(p1<p2)
{
cout << "p1<p2" << endl;
}
else if(p1>=p2)
{
cout << "p1>=p2" << endl;
}
else if(p1<=p2)
{
cout << "p1<=p2" << endl;
}
else if(p1==p2)
{
cout << "p1==p2" << endl;
}
else if(p1!=p2)
{
cout << "p1!=p2" << endl;
}
return 0;
}