📄 rectanglep.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -