box.cpp

来自「此文件可以能帮你求体积」· C++ 代码 · 共 27 行

CPP
27
字号
// Box.cpp: implementation of the Box class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Box.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

Box::Box( double h, double w )
: AreaClass( h, w )
{

}

Box::~Box()
{

}

double Box::Area()
{
	return width * height;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?