shape.h
来自「著名的LUA脚本语言的Symbian S60平台的移植版本」· C头文件 代码 · 共 27 行
H
27 行
#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 + =
减小字号Ctrl + -
显示快捷键?