xxxxxxxxxx
// Author: Subodh
#include <bits/stdc++.h>
using namespace std::placeholders;
using namespace std;
class Practice
{
public:
bool compare(int a, int b)
{
return a > b;
}
void Way1(int x, int y, bool (Practice::*)(int, int))
{
(Practice::compare(x, y)) ? cout << x << " is bigger than" << y : cout << y << " is bigger than " << x << endl;
}
};
int main()
{
Practice op;
op.Way1(20, 33, &Practice::compare);
cout << endl;
return 0;
}