network.h
来自「PIXIL is a small footprint operating env」· C头文件 代码 · 共 30 行
H
30 行
#ifndef NETWORK_H#define NETWORK_H#include "Computer.h"#include "Cable.h"class Network{ /*structure for global network of computers */ public: static const int MAX_COMPUTERS = 20; /* max computers on screen */ static const int NUM_SYS = 6; /* number of computer types */ NXPicture pictures[NUM_SYS + 1]; /* array of cpu pictures */ int width, height; /* size of cpu picture */ int units; /* number of cpus in network */ int win, base, off; /* number in each state */ Computer computers[MAX_COMPUTERS]; /* array of cpu info */ Cable cables[MAX_COMPUTERS]; int ncables; void setup(); void load_pix(); void draw(); void update(); void toasters(); int on(int lev);};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?