types.h

来自「omnet++ 平台下的flood 我弄了好久」· C头文件 代码 · 共 21 行

H
21
字号
//变量结构和类型定义
struct nodepos_struct /2D position structure/
{
 int x;
  int y;
  
};

struct gatecd_struct //门连接或者取消链接
{
 bool cd[NNODES];
  cMessage *msg[NNODES];
  cGate *fromGate[NNODES];
  cGate *toGate[NNODES];
 };

typedef int nodeid_t; //nodeID structure
typedef struct nodepos_struct nodepos_t; //position structure
typedef struct interval_struct interval_t;//time interval structure
typedef struct gatecd_struct gatedcd_t;//gate connect /disconnect structure

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?