rect.h
来自「c++程序设计教材第二版书上即课后习题源代码」· C头文件 代码 · 共 14 行
H
14 行
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();
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?