KEMBAR78
Train Reservation System C++ Project | PDF | System Software | Software Engineering
0% found this document useful (0 votes)
348 views10 pages

Train Reservation System C++ Project

This document summarizes a student project for a train reservation system. It includes a certificate page recognizing the student who completed the project, an acknowledgements section thanking those who provided support and guidance, and an overview of the project describing its functionality and goal of allowing users to reserve and cancel train seats. It also lists the header files used and user-defined functions created to support the project's operations and interface.

Uploaded by

MansiJain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
348 views10 pages

Train Reservation System C++ Project

This document summarizes a student project for a train reservation system. It includes a certificate page recognizing the student who completed the project, an acknowledgements section thanking those who provided support and guidance, and an overview of the project describing its functionality and goal of allowing users to reserve and cancel train seats. It also lists the header files used and user-defined functions created to support the project's operations and interface.

Uploaded by

MansiJain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 10

COMPUTER PROJECT

TRAIN
RESERVATION


Made by:-
Megha
Goyal
XII-A

CERTIFICATE
This is to certify that this Project
TRAIN RESERVATION
Has been completed by:
GUNAJAN SHARMA
St!dent of class "##$A%
St& Mar'aret Sr& Sec& School%
Prashant (ihar)
Under the s!per*ision and '!idance
Mrs& Sari+a A''ar,al

Teacher-s Si'n
.....&&&&
ACKNOWLEGMENT
# am indeed profo!ndly 'ratef!l to my
teacher Mrs. Sarika Aggarwal ,ho not
only accorded her permission to perform
this project b!t also 'a*e her e/pert
*al!able '!idance in completin' this
project&
# also ,ant to than+ the s!pport ,hich
my school and family pro*ided me to
ma+e this project a s!ccess&
ABOUT THE PROJECT
The project Train reser*ation is based on
the ,or+ of train reser*ation& #t allo,s
the !ser to reser*e n cancel his0her seats
for a train& #t also 'i*es the sched!le of
the 1 trains contained !nder this section&
The sched!le incl!des train name% train
no& % timin's of ,ait at the station.&&
The project is made to the best of o!r
ability to ma+e it !ser friendly..

HEADER FILES USED
2& <iostream .h> - This header file is
!sed to incl!de standard inp!t and
o!tp!t f!nctions&
3& <conio.h>-This header file is !sed
to !se the f!nctions li+e clrscr 4 5&
6& <string .h>-This header file is !sed
to perform f!nctions on the strin'&
7& <stdio.h>-This header file is !sed
to ta+e standard inp!t and o!tp!t
for strin's&
1& <fstream.h>-This header is !sed to
perform all the file stora'e f!nction&
USER-DEFINED FUNCTIONS
1.void train::input()
function to class train to take the data for trains
from the user.
2.void st(int x)
function to allocate seats to passengers for a
particular train.
3.void psg::read()
function to class psg to read the data of
passengers from user.
4.void train::display()
function to class train to display schedule of
trains on console.
5.void st(int x, int a)
function to allocate seats and display them on
console as per the train entered by the user.
6.void schd()
function to open fle schd.dat and call the
function display of class train.
7.void reserve()
function to call function read of class psg.
8.void cancel()
function to cancel seats allocated to passenger for
a train.
9.void list(int x)
to call the functions as per users entered choice.
10.void menu()
to display menu list on the console and ask for
users choice.
STANDARD FUNCTIONS
1.gotoxy( , )
to take the cursor to the mentioned pts
2.getch(void)
to take any character value from user

3.remove( *.cpp)
to delete the fle

4.rename(*.cpp,*.cpp)
to change the name of fle
5.f.read( , )
to read data from fle
6.f.write( , )
to write data on fle
7.f.close(void)
to close the data fle
8.gets( )
to read a string from user
9.f.open(*.dat, )
to open the fle in a particular mode
10.strcmpi( , )
to compare two strings
OUTPUT
OF
MAIN.CPP

You might also like