Author : Shah Mrunal Nirajkumar
It took me 3 cycles to write the code. 1st time i wrote, it went horrible. 2nd time, the recursion happened so hard that i could not handle that. this is 3rd time and i am feeling happy.
maybe this code have more bugs, but trust me, its worth if you can just read it. i used so many core concepts like cross-platform comaptiblity and file handling, with pointers ( malloc ) and soo much...
Thanks
Mrunal Nirajkumar Shah
A C based project , Bus Reservation System is a C Program which has :
- Windows Compatible:
- Windows ( CODED IN IT, USING VISUAL STUDIO 2022 ) { Build for windows only }
- Linux ( Needs minor changes like coding itoa function, alternative of conio, and some basic changes )
- A login system, where Users and Admins can login.
- ADMIN LOGIN :
- Username : admin
- Password : admin
- ADMIN LOGIN :
- User Registration, which is stored in files.
- Bus Ticket Booking, where user and/or admin can book tickets of available buses.
- Bus Ticket Cancellation, where users and/or admin can cancel single tickets at a time for available buses.
- Bus Journey Registration, where admin can register buses for future journey.
- Bus Journey Cancellation, where admin can cancel bus journey.
- All this features of ticket booking, cancellation, bus registration and bus cancellation are powered with time validation, you cannot book/cancel, register/deregister buses after time period.
- A good file management system where we create directories, files and store data for long term use.
- A structured Quality of code for better useability.
- NO USE OF RECURSION IN THE CODE.
- A Maintained errorCode handling function which takes code and handles error with ease.
- Didnot use any new functions besides basic C libraries, for file i have used fscanf, fprintf only.
- User friendly readable code.
Images | Description |
Welcome Page |
|
Creator Information |
|
Select User Type or Register |
|
Login and Register looks same, register has a password confirmation. |
|
Bus Journey Registration |
|
Bus Information |
|
Seat Arrangement |
|
Bus Ticket Booking |
|
Seat Arrangement after Booking Tickets |
|
Cancel Ticket/Cancel Bus - This is cancel ticket interface. |
|
Error Messages are everywhere. |
- Open bus-reservation-system.c and bus-reservation-system.h , start reading from main
- Go through every file in src.
- Its intuitive and easy to read.
- Its cmake file, please check the latest commands to compile cmake file. cmake, then make and run the executable file.
- you can also use Visual Studio and open a exisiting folder, and run the code in visual studio ( i used VS 2022 )
- any compiler works, you just need to compile all files, make objs and then link them ( i dont recommend this one )
Thank you.
mrunalnshah.