📄 rectangle.h
字号:
// Rectangle.h: interface for the CRectangle class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_RECTANGLE_H__189BE12F_3F2A_4812_BF48_1735381779F1__INCLUDED_)
#define AFX_RECTANGLE_H__189BE12F_3F2A_4812_BF48_1735381779F1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CRectangle
{
public:
int GetArea() const;
void SetRight(int right);
void SetBottom(int bottom);
void SetLeft(int left);
void SetTop(int top);
int GetRight() const;
int GetBottom() const;
int GetLeft() const;
int GetTop() const;
CRectangle(int top,int left,int bottom,int right);
virtual ~CRectangle();
private:
int itsRight;
int itsBottom;
int itsLeft;
int itsTop;
};
#endif // !defined(AFX_RECTANGLE_H__189BE12F_3F2A_4812_BF48_1735381779F1__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -