📄 volum.h
字号:
#include<iostream.h>
class Volum{
float length,width,height;
public:
Volum(float len,float wid,float hei)
{
length=len;
width=wid;
height=hei;
}
Volum(Volum &p)
{
length=p.length;
width=p.width;
height=p.height;
}
~Volum(){cout<<"Destructor called...\n";}
float area1(){return length*height;}
float area2(){return width*height;}
float area3(){return length*width;}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -