This project is a simple console application built without the use of graphics. Named railway reservation system project in C++, this program features two modes, password protection and some basic file handling operations to add and display train inquiry and reservation records. This project is complete and totally-error free, and I have presented the source code in a very understandable manner.
The source for railway reservation system project in C++ is over 700 lines, so I haven’t included the code in this post. You can directly download the source code of this project from the link below. Also, the description provided here contains general features and header files related to this project — it can be used as project synopsis.
Download Railway Reservation System C++ Project with Source Code
[sociallocker]
Download Railway Reservation System C++ Project with Source Code
[/sociallocker]
About Railway Reservation System in C++:
Features:
1. Administrator mode: There are two modes in this project – the administrator mode and the user mode. For the first time you have to create Users from the Admin mode. Once users are created, you can use the same user again and again, and they will be stored in separate files.
The operations related to both these modes are quite similar in this railway reservation system project in C++. In Admin mode, you can create detail database, add details, display details, perform user management functions and display passenger details.
2. User mode: As aforementioned, at first you need to go to the administrator mode and create users. After that, you can use these users as you wish, and the information related to them will be recorded in separate files. In the user mode, you can create id database, add details and display details.
3. Train and Reservation details: In this railway reservation system project in C++, users can get both the train details and the train reservation details. The details to be provided for train are train no., train name, boarding point, destination point, no. of seats in first class and fare per ticket, no. of seats in second class and fare per ticket and date of travel.
And, in case of reservation details, the information to be provided are train no., train name, boarding point, destination point, no. of seats required, seat class specification, date of reservation, passenger category and amount to be paid. According to the no. of seats, additional information – passenger name and passenger age are to be provided. The passenger category is divided as: military, senior citizen, children and none.
4. Cancel reservation: It is somewhat similar to the feature mentioned above. This feature requires the date of cancellation in this railway reservation system project in C++. Then cancellation details can be displayed; the details here include train no., train name, boarding point, destination point, passenger class, no. of seats to be cancelled, passenger name and age, date of cancellation and the amount to be collected back.
5. Password: This railway reservation system project in C++ requires the administrator password to access the admin mode. The password is “codewithc”. If you enter the wrong password, it displays the message – “You are not permitted to login.”
Header Files Used:
To make the project simple, graphics.h header file has not been used in this project. List below are the header files required to run this project.
- #include<stdio.h>
- #include<conio.h>
- #include<stdlib.h>
- #include<string.h>
- #include<iostream.h>
- #include<time.h>
- #include<iomanip.h>
- #include<fstream.h>
Also see,
Airlines Reservation System
Bus Reservation System
More Projects in C/C++
To sum up, this project will teach you proper use of file handling and working with multiple modes (administrator and user) in C++ projects. I hope railway reservation system project in C++ will serve you as a good reference project. If you have queries or feedbacks regarding this project, bring them up to me from the comments section below.
i want shopping mall software project in MATLAB or c++ language
i want 2 project on c++ for 1+yr exp.
if any on has project ,then send me at rahuleast20@hotmail.com,with source code & documentation.
hey! i can’t able to run the cancallation part
the booked ticket dosenot get cancel
why one time we are using seekp(addr-7*ad) and then for second class seats 5*ad
i enter the password ‘codewithc’ but it say incorrect password
That is the correct password. Please, recheck.
Can you make a small TURBO c++ program on bus reservation using nothing other than functions,structures,for loop,while loop,do while loop,arrays and strings ?
I haven’t used Turbo C much. And, it’s strange you want to make a Bus Reservation project without using file! Try making this project (using functions,structures,for loop,while loop,do while loop,arrays and strings) on your own. Here’s a reference which might help you.
is there any flow chart for this program
Sorry, there’s not!
Is the modification feature of file handling included in the project ?
If not, where can it be added ?
i want code for charges or amount for railway reservation
i cant enter the password
I think the password there is codewithc.
i need source code for maintain locations
Hi whats the login id and password??
The password is codewithc
i want the source code of adding a train in between the original timings in c++