A console C program that simulates train ticketing system. Divided into two main parts: ordering mechanics and simulation mechanics. Ordering mechanics handle implementation of order as a struct to write, read, and process further. Simulation mechanics provide randomization to seating and schedule. Program language is Indonesian.
This source code is made by DK02_g07 as final programming assignment in Even Semester 2020/2021 for course Basic Computer + Lab. (ENEE603014) in Undergraduate of Electrical Engineering study program, Department of Electrical Engineering, Faculty of Engineering, Universitas Indonesia.
Download repository as ZIP or clone with Git.
- using cmake
Open command prompt/powershell, navigate to project folder. Then use commands:
The executable (or .sln file) would be available in the
cmake -E make_directory build cmake -E chdir build cmake .. cmake --build build
build
folder. - directly using compiler
use clang (or gcc):
clang -o rtsystem.exe rtsystem.c order.c simulation.c generics.c
- Using IDE (Dev-C++)
- Menu
File
>New
>Project...
- Set as
Console Application
- Set project name.
- Set project to
C Project
Ok
and save.dev
file somewhere.- Remove
main.c
in this new project. - Menu
Project
>Add to Project
- Select all the source codes (ends with
.h
and.c
) - Compile program.
- Menu
Or just download the precompiled binary on https://github.com/deadManAlive/rtsystem/releases/latest