box.cpp

来自「大量的C++语言代码,可以快速的学习C++的相关知识」· 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 + -
显示快捷键?