2. CERTIFICATE
This is to certify that Computer Science
Project titled “Railway Ticket Reservation” has
been successfully completed by Anekant Jain of
class 12th in partial fulfilment of curriculum of
CENTRAL BOARD OF SECONDARY
EDUCATION (CBSE) leading to the award
annual examination of 2017-18.
______________ ______________
External Examiner Internal Examiner
______________ ______________
Principal School Seal
3. ACKNOWLEDGEMENT
I would like to express my special thanks to our school
“Sanmati Higher Secondary School” , Principal Ma’am
‘Mrs. Pinki Joshi’ , to the management team of our school who
gave me the golden opportunity to do this wonderful project on
the topic ‘Railway Ticket Reservation’ which also helped me in
doing a lot of Research and I came to know about so many new
things.
THANKS AGAIN TO ALL WHO HELPED ME .
5. HEADER FILES USED
1.FSTREAM.H For File Handling, cin and cout.
2.PROCESS.H For exit() function.
3.CONIO.H For clrscr() and getch() function.
4.STDIO.H For Standard Input-Output
Function.
5.STRING.H For string handling.
6.MATH.H For using mathematical operation.
6. FILES GENERATED
DATA FILES :
TRAIN.DAT
PROGRAM FILES:
RAILWAY TICKET RESERVATION.CPP
OBJECT FILES:
TRAIN.OBJ
EXECUTION FILES:
TRAIN.EXE
7. WORKING DESCRIPTION
This program is designed to keep Friend’s Record.
This program consists of FIVE options as
follows:
To Add new Railway Station.
To Book Ticket.
To change per km Rates.
To Modify DataBase of a Train.
To Exit.
14. clrscr();
cout<<"Enter new per km rates";
cin>>per_km;
cout<<"Rates Updated !!!!!";
}
if(choice==4)
{
clrscr();
cout<<"enter the railway station to be changed";
gets(station_searched);
ifstream f1("train.dat",ios::binary);
while(f1)
{
f1.read((char*)&tr,sizeof(tr));
long pos=f1.tellg();
if(0==strcmp(station_searched,tr.station_v()))
{
f1.seekg((-1*sizeof(tr),ios::cur));
tr.modify();
f1.close();
ofstream f1("train.dat",ios::app);