cable.h
来自「pixil 最新的嵌入linux 應用程序集,別的地方很難下載」· C头文件 代码 · 共 23 行
H
23 行
#ifndef CABLE_H#define CABLE_Hclass Cable{ public: int c1, c2; /*computers connected */ int x1, y1, x2, y2; /*endpoints of line representing cable */ int x, y; /*current location of spark */ float fx, fy; /*needed for line drawing */ int delay; /*how much time until spark leaves */ int active; /*is spark moving and from which end */ int index; void setup(); void draw(); void update(); int onspark(int locx, int locy);};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?