相关状态码及宏函数列表

#ifndef STATUS_H
#define STATUS_H
/状态码/
#define TRUE 1 //真
#define FALSE 0 //假
#define YES 1 //是
#define NO 0 //否
#define OK 1 //通过
#define ERROP 0 //错误
#define SUCCESS 1 //成功
#define UNSUCCESS 0 //失败

#ifndef _MATH_H //系统中已有此状态码定义,要避免冲突
#define OVERFLOW -2 //堆栈上溢
#define UNDERFLOW -3 //堆栈下溢
#endif

#ifndef NULL
#define NULL ((void*)0)
#endif

/状态码识别类型/
typedef int Status

注:数据结构的表示(存储结构)用类型定义(typedef)描述。数据元素类型约定为Elem Type,由用户在使用该数据类型时自行定义。

猜你喜欢

转载自blog.csdn.net/gy99csdn/article/details/82764073