A Simple Train Ticket System Exercise for NTUST NGLab
- Improve one's programming skill
- Know how to use Github more proficiently
- Learn about the flow of how to build a project
clone
git clone git@github.com:Jackxul/NGLAB_Ticket_System.git
before build
build tool
sudo apt update
sudo apt install build-essential
library
sudo apt-get install libncurses5-dev libncursesw5-dev
start
cd NGLAB_Ticket_System
make
./exe/start
clean
make clean
Structure 👷♂️
.
├── Makefile
├── README.md
├── build
│ ├── account.o
│ ├── admin.o
│ ├── main.o
│ ├── map.o
│ ├── select.o
│ ├── station.o
│ └── user.o
├── exe
│ └── start
├── include
│ ├── account.h
│ ├── admin.h
│ ├── map.h
│ ├── select.h
│ ├── station.h
│ ├── station_in.h
│ ├── station_out.h
│ └── user.h
├── ref
│ └── station_map.png
└── src
├── Makefile
├── account.c
├── admin.c
├── main.c
├── map.c
├── select.c
├── station.c
└── user.c
To Do List 🔧
Ticket System
│
├── User mode
│ ├── Buy Card(Account init ---> account.h)
│ ├── Take MRT(Account set station info ---> account.h)
│ ├── Add value(Top up)
│ └── Buy one-way ticket( ? )
│
└── Admin mode
├── Set station info(Login for setting ---> station.h)
├── Set station info( set station info ---> station.h )
├── Store user info( ? )
├── Search user info( ? )
└── Define station fee(Fee algo ---> map.h)