volum.h

来自「学习C加加做的实验源程序」· C头文件 代码 · 共 22 行

H
22
字号
#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 + =
减小字号Ctrl + -
显示快捷键?