Skip to content

12471220/elevator-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elevator Simulation

A simple elevator simulation program
implemented in c, without GUI.
It can realize the up and down button operation on each floor and the button operation inside the elevator.
Because unistd.h is used, it can only be run on Unix-like systems.
Compile and run:

make
./elevator

The test program was written in main.c

example:
run example

Maybe multi-thread simulation will be added in the future to enable real-time input.




电梯模拟器

一个用c实现的简单电梯模拟程序,无GUI。
可以实现每层楼上下按钮操作、电梯内部按钮操作 因使用到了unistd.h,只能在类unix系统上运行。
编译运行:

make
./elevator

测试程序在main.c中

测试样例结果:
run example

也许以后会加入多线程模拟,做到可以时实输入

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published