globaldef.h
来自「topdisc算法的omnet仿真.平台:omnet+vc 6.0」· C头文件 代码 · 共 53 行
H
53 行
//-------------------------------------------------------------------// file name: globaldef.h//// - several constants definition//// - macros have been moved to macros.h, types and structures to// structures.h (see the bottom of this file for #include-s)////-------------------------------------------------------------------#ifndef __GLOBAL_H#define __GLOBAL_H// constant definitions // color and type ranges #define MAXCOLOR 10 #define MAXKIND 3 #define NNODES 20 // number of nodes in the simulation // constants used for position and mobility #define SPACEX 800 // nodes are placed in a rectangle SPACEX X SPACEY #define SPACEY 500 // // constants used for the display #define MX 0 // margins around the display area #define MY 0
// int ndist[NNODES][NNODES]; // message types enum { M_LOWHIGH, // message from lower layer to higher layer M_HIGHLOW, // message from higher layer to lower layer M_NODE, // message from another node M_UPDSSTRENGTH,//message update by a node // any more kinds of messages, define them here M_SELF // test message for the application };// other includes...#include "macros.h" // all the macros have been moved to this file#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?