#include <iostream>
using namespace std;
class Distance
{
int feet,inch;
public:
void getdata()
{
cout<<"Enter the Feet and Inch Values : "<<endl;
cin>>feet>>inch;
}
void operator -()
{
feet--;
inch--;
cout<<"Feet and Inch values in after change : "<<feet<<", "<<inch;
}
};
int main()
{
Distance d1;
d1.getdata();
-d1;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: