rect.h
来自「高等教育出版社出版的C++程序设计同步实验范例 希望对用这本教材得同学有点帮助」· C头文件 代码 · 共 15 行
H
15 行
class Rectangle {
int left, top ;
int right, bottom;
public:
Rectangle(int l=0, int t=0, int r=0, int b=0);
~ Rectangle(){}; //析构函数,在此函数体为空
void Assign(int l, int t, int r, int b);
void SetLeft(int t){ left = t;} // 以下四个函数皆为内联成员函数
void SetRight( int t ){ right = t;}
void SetTop( int t ){ top = t;}
void SetBottom( int t ){ bottom = t;}
void Show();
//void Draw( CDC* pDC);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?