class Operation
{
public:
Operation(){};
void SetX(double a)
{
x=a;
}
void SetY(double b)
{
y=b;
}
double Add()
{
return x+y;
}
double Minus()
{
return x-y;
}
double Times()
{
return x*y;
}
double Divided()
{
return x/y;
}
~Operation(){};
private:
double x,y;
};
#include
using namespace std;
void main()
{
Operation x;
double a,b;
couta;
cout