constant.h

来自「用于电力系统潮流计算 c++程序」· C头文件 代码 · 共 41 行

H
41
字号
/* constant.h 030390 */

#define INDEX int
#define VALENCE unsigned int
#define LONGINT long int

#define NORMALEXIT  0
#define WARNINGEXIT 1
#define ERROREXIT   2

#ifndef maxNp1
#define maxNp1 1001
#define maxN 1000
#define ELEMENTVALUETYPE double
#define VALUETYPE double
#define SINGULARITYZERO 1.0e-20
#define BUFLEN 256
#define PI 3.141592654
#define UPARROW 134
#define LEFTARROW 132
#define RIGHTARROW 135
#define DOWNARROW 133
#define ESCAPE 27
#define BACKSPACE 1
#define NUMBER 2
#endif

#ifndef BOOLEAN
/* For the other compilers, use either "unsigned" or "short int" */
#define BOOLEAN unsigned
#endif
#ifndef TRUE
#define TRUE (BOOLEAN) 1
#define FALSE (BOOLEAN) 0
#endif

#ifndef RAND_MAX
#define RAND_MAX INT_MAX
#endif

⌨️ 快捷键说明

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