赞
踩
#include <iostream>
#define PI 3.1415926
using namespace std;
class Rectangle
{
protected:
float x, y, Length, Width;
public:
float Area()
{
return Length*Width;
}
Rectangle(float i, float j, float L, float W)
{
x = i;
y = j;
Length=L;
Width=W;
}
};
class Circle
{
protected:
float X, Y, R;
public:
float cc;
float Area()
{
return(R*R*PI);
}
Circle(float i, float j, float k)
{
X = i;
Y = j;
R = k;
}
};
class Cuboid :public Circle, public Rectangle
{
protected:
float High;
float VR, VC;
pu
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。