#include<iostream>
using namespace std;
class graph
{
};
class circle : public graph
{
float radius;
public:
circle(float x) : radius(x){}
void getarea(){cout << 3.14 * radius * radius;}
};
class square : public graph
{
public:
float l;
float w;
square(float x, float y) {l = x; w = y;}
void getarea(){cout << "矩形面积:" << l * w;}
};
class cuboid : public square
{
float h;
public:
cuboid(float x, float y, float z) : square(y,z){h = x;}
void getV(){cout << "长方体体积:" << h * l * w;}
};
int main(void)
{
cuboid a(12,13,14);
a.getV();
return 0;
}