⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 constant.h

📁 用于电力系统潮流计算 c++程序
💻 H
字号:
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -