#include<iostream>
#include<cmath>
using namespace std;
class Juxing
{
public:
Juxing(double a ,double b){c=a,d=b;};
double getS();
private:
double c,d;
};
double Juxing::getS()
{
double S;
S=c*d;
return S;
}
class Sanjiaoxing:public Juxing
{
public:
Sanjiaoxing(double a,double b,double c);
double getS();
private:
double e;
};
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余1页未读,立即下载