#include <iostream>
using namespace std;
class test
{
double x;
double y;
public:
test(double A);
test(double a,double b);
};
test :: test(double A)
{
cout<<“这个数字是:”<<endl;
}
test::test(double a,double b)
{
x=a+b;
y=a*b;
}
int main()
{
double x,y,a,b;
test(3.5,8.5);
cout<<“请输入两个数”<<endl;
cin>>a>>b;
x=a+b;
y=a*b;
cout<<a<<“+”<<b<<“=”<<x<<endl;
cout<<a<<“*”<<b<<“=”<<y<<endl;
return 0;
}