rectanglep.cpp
来自「《基于Symbian OS的手机开发与应用实践》这本书的配套源码。」· C++ 代码 · 共 20 行
CPP
20 行
// RectangleP.cpp : RectangleP类实现
//
#include "RectangleP.h"
//---------RectangleP类的实现代码------------
RectangleP::RectangleP(int left, int top, int right, int bottom)
{
this->left = left;
this->top = top;
this->right = right;
this->bottom = bottom;
}
float RectangleP::CalculateArea()
{
return (right-left)*(bottom-top);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?