- 104
- 1
- 约1.54万字
- 约 18页
- 2018-08-12 发布于湖北
- 举报
PAGE
PAGE 1
电梯模拟:代码实现
HEAD.H
include stdlib.h
#include iostream.h
#include iomanip.h
#include stdio.h
#include windows.h
#include conio.h
#include time.h
/*所有常量,全局变量和类型定义*/
#define NULL 0 /*空指针*/
#define TRUE 1
#define FALSE 0
#define OK 1
#define ERROR 0
#define INFEASIBLE -1
#define OVERFLOW -2
#define INT_MAX 32767
/*Status是函数类型,其值是函数结果状态代码*/
typedef int Status;
#define Empty 0
/***************************************************
/*电梯状态*/
enum EleStatus{Opening,Opened,Closing,Closed,Moving,Decelerate,Waiting};
enum Action{DoorOpened,DoorClosed,GoingUp,Go
原创力文档

文档评论(0)