Sie sind auf Seite 1von 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

Das könnte Ihnen auch gefallen