📄 shape.h
字号:
#ifndef SHAPE_H
#define SHAPE_H
#define FALSE 0
#define TRUE 1
#include <stdio.h>
class Shape
{
public:
Shape() {printf ("Shape constructor called ");};
void draw (void) {printf ("draw called ");};
void draw (double red, double green, double blue) {printf ("draw 2 called");};
int isSelected (void) {return TRUE;};
};
class Line : public Shape
{
public:
Line (double x1, double y1, double x2, double y2) {printf ("line constor called");};
~Line (void) {};
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -