point.r
来自「Object-Oriented Programming With ANSI-C这」· R 代码 · 共 21 行
R
21 行
#ifndef POINT_R#define POINT_R#include "Object.r"struct Point { const struct Object _; /* Point : Object */ int x, y; /* coordinates */};#define x(p) (((const struct Point *)(p)) -> x)#define y(p) (((const struct Point *)(p)) -> y)void super_draw (const void * class, const void * self);struct PointClass { const struct Class _; /* PointClass : Class */ void (* draw) (const void * self);};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?