#include <iostream>
using namespace std;
class Cube
{
public:
double m_L;
double m_K;
double m_H;
double testv(double v)
{
v=m_L*m_K*m_H;
//cout<<"该立方体体积为: "<<v<<endl;
return v ;
}
double tests(double s)
{
s=2*(m_L*m_K)+2*(m_L*m_H)+2*(m_K*m_H);
//cout<<"该立方体的面积为: "<<endl;
return s;
}
} ;
int main()
{ int V,S;
Cube v;
v.m_H=1.6;
v.m_K=1.5;
v.m_L=1.4;
V=testv();
S=tests();
cout<<"该立方体体积为: "<<V<<endl;
cout<<"该立方体的面积为: "<<S<<endl;
system ("pause");
return 0;
}