basgraph.h
来自「教材例子」· C头文件 代码 · 共 34 行
H
34 行
//程序BASGRAPH.HPP(7.2.4) 功能:定义基本图形元素的类界面
#include <graphics.h>
enum BOOLEAN{ FALSE, TRUE};
class LOCATION{
public:
LOCATION(int x, int y);
int get_x();
int get_y();
protected:
int x_pos, y_pos;
};
class POINT:public LOCATION{
public:
POINT(int x, int y);
BOOLEAN is_visible();
void show();
void hide();
void move_to(int x, int y);
protected:
BOOLEAN visible;
};
class CIRCLE:public POINT{
public:
CIRCLE(int x, int y, int r);
void show();
void hide();
void move_to(int x, int y);
void expand(int delta);
void contract(int delta);
protected:
int radius;
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?