Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

A B S TR A C T:

Flight Reservation System is based on a concept of


booking and canceling flight reservations. Here, the
system contains no login feature. The users can easily
book flights, cancel flight reservation, and check tickets.
It contains different payment options for the reservations.
This mini project contains fewer features but the essential
ones.
Talking about the features of Flight Reservation System,
for a flight reservation the user has to select whether
he/she want domestic or international and date of journey.
Then the system displays the city and the countries name
and the user has to provide Source and Destination. After
this, the system checks whether the flight is available or
not, if it’s available then the system displays Airlines list
with Departure and Arrival time, Price and Category. The
system asks for the passenger’s information such as name,
contact details, gender, email id. At last, for the payment
process, the user has to select whether to pay from Debit,
Credit or Net bankings.
When the user selects Debit and Credit card, the system
asks for Debit/Credit card information such as CV
number and Card number. And for Net bankings first,
he/she has to select the available bank and provide their
user id and password. After all these procedures, a
reservation is done. As a reservation proof, the system
provides PNR, Flight, Passenger’s name, DOJ, Departure,
and Arrival Time. In order to check tickets, the user has
to provide PNR no. then only the system check for the
respective tickets in the database and displays a result.
Canceling a flight reservation is easy through the system,
the user just has to provide their PNR number. The
system asks for confirmation before canceling and also
refunds some amount.
Flight Reservation system is developed using C++
Programming Language and different variables, strings
have been used for the development of it. Flight
Reservation System in C++ Programming with source
code is free to download. Use for educational purposes
only! This mini project provides the simplest system for
flight reservations.
Ps
# cR eO <;s fs itr o trg isn G eltro geb m aea> m R > AM :
iu
c nrlia tnc is n
g lo
lg
tis
ub
d
d=
n _a a <
m
rb
0=
;ld od e
1 o /0 s k;p in a
tig
c .h
//ec lsv ltd asr;s iabfo lersdomesticbooking
{p
p uo ilib
v n
o
n te h
o ltn cia cdp
g
c :/nlro
te h n f_
d/rip n
od _ u it:p c b [1 e
ln ;ilo
li,b 0
rs cj;],;rm c o ,d ec ja m [7
s b t;a],e to rn fu jd n [7ca ];tirio //n pslre otectedmem bers
{}i{ntc g
p
c j_ d b
= e + g ta + o (/()c )\1 /n fu nrrte n e
isrecb
m tiD ao
e n td v e)c la a
\2rn
b ua.S tino n ;ae ny(2 d d \ets\3 fiYn it).io "n fou "rP rd lo eem se)s\ttie\4 c joa run arb nveearyrla
{ifo
c o iin
((s nu u >
> rttcu >
<
<
> = <=
< d
s
d <"1
r"o e< \tn j&
s ;;E t;.E B
n & tte i\.rd tG li\ly ad
to
rS
sF et=
o
e li:\ta
n auti
s tg =D
te
e
h r2(1 cts
n O
)aep a)\"fJ
|\F titta< o
(s o < rt:0 c1 "rre = n
< ed
y
:\="< \t2A
yn l(D e & nrD & d M ld;)5 M
e:0 t=
Y .M = 1e
< b<
))/l:\s /co lt;o 0\1tn
n
ad itg
a(3
i\o nre
n.C te id(4d)"ate
<<."e<n<dle<n<del;ndl;
{}elsc
ceo
c o iftt((s
u < rc""=A
< A \3
\\=
1
2
ti\..r1tG
Q
F &
n
& n D
A d iru seb(1
(3 (1
se
e )\= ti(1 2=0 9o r)\8 tu
:0 n 04ed \0t:0
:\"\t\tA
<
0r\2tc\1 1r<
2 t=\1 :0 ti=e1
v :0 n
5 a7d \l& t::\\\llttt& <
P
\R
5 tR <\rd ts i\cts.e6R n
.e
s50ts
d 0t.\5
0 0
0 C
5 \\0
)tta\\R
te
//tte
0
R Rc\te te
fuo Rfu n yn
d:\fu da nna
b "d b ;ea
;lle
le\n
b\n "le";\n;";
{}elsc
c eo ou
o u
iftt((s <
< <
rc""=A
< \\=
1
2
t3
Q
F li& \ly
n to
aF neA D li:\ta tg
iru D h
seb(1
(3 ts )\attp ti)\(1 F ta
2=0 9ro o)\4 38
tu
:0 t):0 n
1 r||0 ed
4 (s
\0t:0 <
0r\2ttc\\1 r<
2 t= r\1:0 ti=e:0
v
e1
n
5 3a7 d
5 \l& t:0 \t\R <
P
5 tR <\rd tsi\cts e6
.e R n
.e =
d
s50:\:\ts0t.\5 l=
0 t;C 0\1
5 t\0 )ta //tte
0 Rc\te g o\tefun
o Rfu nde
rd yn
d:\iftu dain
oa
onb "ndb le\n
a b\n "le";\n;";
ce u
iftttt((s << <
rc""""=A 1
2 i\.r1tG Q li& \n ta F & e
nA li:\ta d tg D h
s se ts p =
ti)\(1 F ta=0 9rro tu
8 t)):0 n r||4 ed (s
\0 :\"\tA <
r\\2 r< r\1 ti=v :0 n 4a75 d \ll& :\lt& <
P
\R tR <\rd tsi\cts n
.e
s4
=
d0t.\4 l=
0 t;C 0\2 \R
//ttteR g o\te n
o fu rd yn:\iftu d in a "ndb ;a le\n
b\n "le";\n;";
{}}elsc ceo
ou u <
<
<< \\\= t3
1i\r2 tF
Q li& \ly
n to
aF & neA
D li:\ta d iru
tg D h
seb
(3
b(1 se ts )\atp
)\at= ti)\(1 F 2
ta
)\3 :0
tu
1
n r||||0ed t:0
(s:\"\ttA
0
< c1 2
r<
t=
tr\1
:0
tive1 5
n 3a d t:0
:\\\lttt&
5
<
\P <\rd tsi\cts
.e6R n
.e
1d
58:\tts=9t.\2 l=t;C
2 t\5 )tta 0 c\\ttg
e o fu
on R
rn
e d
yn:\iifttua on
in b "n ;lle
elsc ou if((s <
rc=A \=
2
t3i\..r3 2tF F
G ly o & D d iru (3
eb se = 2=0 9o )\48 :0 t:0
t)):0
1 04 \0t:0
(s 0r2tc\1 2
t=
:0
ti=
:0
1 5 75
4a7 \& t:0
:\lt&
5
R tR .e2R s5 =4 0
l=
0\t\0
5
020 )a\\R 0
//te Rce o\tefun Rfu n e
rde
d dain
ona
n
b
"nd
b
d ea le\n
b\n "le";\n;";
}{elsc ceo ou
o u
iftt((s <<
< <
rc""""=A \\= 1
2
t3 Q
G li\ly
lie&
n to
aF F & neA D li:\ta d tg
iru D h
s
(3
eb (1
se ts )\atpp =ti)\(1 F ta
2=0 9rro )\4 tu
8
:0 n
1 r04
r||0
ed 0
\0 :\"\tA
t:0
(s <
0r\\2ttc\\1 r<
2
t=
r1
r\\1
:0
ti=
e1
v :0 n
5 4a d
5 \ll& t:0
:\\\lttt&
<
P
\R
5 tR <\rrdtsii\c .e6R
cts n
.e
s5 0:\s d0t.\4 0 t;C 5
0\\3tt\\0)tta //ttte
0
R R g
c\\tte
e \tefuo Rfu n yn
d:\u
:\ifftu
da a
b b ;le\n
;lea b\n "le";\n;";
}e{lsrc ce eo otu u
ifttt(s
u <
< r< <
<
cj_ ="d = \\n
1
2
3 d i\.rtG Q
F \ly
n
so
ta n
t)/eA D li:\ta
/tie
g ru D o
h
s
(3 anp
(1 ts )\ad ti)\d
(1 F
ita2t0 9 o8
i)\ tu
:0 ten:0 n
1 ed
4 ti\t:0
:\"\tA
ne0
<
a2
r<
2 :0 e1
v :0
n5ry
n 75 d
c\t:0
<
P
\R
5 tR <
'\tts \ts.e6R n
.e 0:\ts=
d8
5 t\0
s.5
l=
a5
t;C \R
8 R g o\tefun
o Rfu rde
n yn
d d in
aag
ona
b "ndb
aleia
leb\n
n\n "le\";n;";
\n
{}{e lsrce u rrt_ <
n e S ta o iu ll((fn ););ro c n td ste dtiti\n o aan ab iene m \nn"e.\fo <n <T ry \n \n"<<endl;
{}int}{csc io sna eito
u tltu eu < ct< <
n "fl\j_
<
n
"ig
iE
\d
ch
n
en
W e
;tte
ta
)(\D )irt/o ri//F sylu
g nu icn
ttrta ctis c ou h n o ad
en
isc cete eco
e "ld ar< ra eo nen
T
la;n dgd fi\nn\in tio re sn ed lelc;tingflight
w >
s c c
s
c
>
h
e o
tr
o
(c cu
1 u
h
c :// t<
tp
o <
<cy< o
<
(f_ n ""d d d jrQ n r,ly i"F a
e io n
Q
p aiin
w
n gta
a lrn h itu s 0ti"5
h
< rsee e< "cle //T :)e;< n i//m d
c l;p
e p y:5::ly "<
y"<
0 to8< :0 sen
dd
0trtri "d < nl;l< ;gendl;
casc s
b
ceo tr
o r2u e c :// ap p
tt<
k< <cy y;(f_ o"n
(to
< A
""d \jrD ja
F nd
rii,tto
,v i"o Fl1
8
1
D g :0
1 h T
:0 "m ar"");e
s e
);/ le /c 1
"c
o
cete 1o p:0 d to
o"1 "<
to<
4<
s< tri
s
e n n id g
n ltr;l< g
casc s
s
b
c
seo tr
tr
o
tr r3u u
e
u
c
c
c :// atp p
t k< <cy y;< o""n
(to
<
(f_
A "
d
d \ ja
G nd ,
i"F
"
e
,vi "o p
G l a
A in g
ly
a
o 4ilru
7 h T
:0 D
tu
"
A
b
t i< m
0
5 u
s
r <
"
i");/
b
e ele
);/
<
a
T
e :n /iic
/
1
c m );/
o
d
o te 7n
p pe/d
:0
l ;
cy :5
y : "
;to
to
p <
<
y< :0
<
s stri to ee
tr 0n in"n s
d < d gg
;l;ie nn gdl;
su trrtu letc:/atp < y;o< (to A " D
r
jditc
ja r i e
v
,i"o p a
1n
2 a 9fli
2 l r T
:0gi5 tu i m
0n e
"t();/u e T : 2 m 2 e
:0 : 5 1 " 9 < :0 < 0 e " n < d < l; e n d l ;
}cd efarc b eo ku r/n kc < < scn "la
e d
W le s],erm stt_ g nep
ih );rt/c eonpte yrto eds.\trnT iry gagain"<<endl;
};rlao
c
{p i}b
ilc ste
n
o
n h tiscia
ltn p
g
s i_n
rte f_
c b
/riip nd ri,p o
iu t;:/d[b o /p
1
d 0
o rijio
(s],cb
n t;m g
te oc//ja ch te i[i7 d io ;fo ejd m ri[b 7 ];tite ro snnsationalbooking
p u}{v
{i//nbtc
o g
p rj_d :/n
o lo u b_
g ie = a g ltn + leili
olir+ );// ti,
)/jiia io ln ;fu ec m o
rrn eD c bm re fu n dtrd
n v-p ca
cr.rlu ia b tilets
c o
o iin n d
u
u >
> tth ta
<
>
<
> <
<
<s
dto "e(c
r"o \\E t1
sE
yn
;/;ti\.E tnL te u o \te
n b rd cyS otiaco o nte o n (1
u sO )eF cfJ e\e2 o "a o
ti||D
<a je
ru< n aec
nb "ca
e noy;(D id (n .2o l;D )arg n
M\3d d M .A l8b
dY eu Y fiD n
)."h iti< ob
a <ni("fo 3P )rle\4 jo a.S u
seirn negna yte p do rerta ae(4 vils a)l\i5 d.N daetewY."o<rk
<(5e)n"d<l;<
; endl<<endl;
{cifo ((s uo
c rtcu <i=
u d = "< 1tn & \&
;n itrE
te F lidm lreig dsta h ets
r:\tiatrd = ti= n 3p o i)(tu 1)\rn
o (s d r"4 < :\i= \< = te1 3n ri& & < :d \t<e\P 5t\estR \rtn tii\ctRd
=R l=;:\s51t2.\2 ))/4C /c5a 0o ng td ifturio :\n
{}elsc c
c eo o
o iftt((s
u
<
< rc""i=
< A
A
1=
2
3 i..rE
V
F li1m
n
is
ly
n &e e &iD
r:\atrd
u D
ab
te
D e(1 e
e ss a
s
ap
)\(3
)\ti(3 = a
2
a
21)\r)\ =t0
)\ tu
tu t14:0 18 r)4
e:0
e:0
0 ||:0:\\t(s
t0\A
A t\t1 r\rtc\4 rti2
v
:0
v =12
12a
a
= 5
:0
5l:0
l:0
:4\t5& \P &\rti\ctR
s d .e2
.e s
e:\s5..st2 .\2
0titt40
1
=6
C 0= 3a
\0 te
1ttte0R))/\\g \teR o
/\o R
ctR e
ore
n
eyn
:\ffu
yfu
d
u
dn n
nnait""dbd
ido;ala
;d
en
eb
b\nlele""\n;";
;"";";
{}elsc ce eo ou iftt((s
u
u
<
< <
rc""i=
< \\1 1
2
3 = i.rF
V
F
li1ly
is
ly &eta ta & iD u a
te b e(1 sa i(t=
)\titi(3 =t0 t15:0 18
r)e:0
0 ||:0:\\t(s 0\A t\\tt1r\tc\4 rti2
:0= =8:0
:5\t5& |tt\\ttR
5 R
\rrd
seRR 2s
s5 ti2 5
t=\tit4 =0
1 0
14 5\\0
9))/
0R /g e
ctt\\ttR
o fu
fRn n
de d
iftn
u a
n
inob b n la ab\n le\n
;\n
{}}elsc ceo ou iftttt((s <
<
<
<<
<
rc""""i=
< A
A \\3 2=
1i...rE
2
V
V
F li2m
n
is
n
is
ly &e ta & iD
iD
r:\:\attrrd u
u
D
a
te
D
ab
b e(1
(1
e
e ss ap
p
)\(3
i(t=
i(ta
a
21)\rr)\
21)\)\ =tt0 tu
tu
0
t1
t13:0
:0
18
18 r)4 e:0
4
0
0 ||:0:\\t(s
:0
0\\A t\t1 r\\ttc\\4
rtti2
4
v
:0
v
:0=12a
12=
a8:0
8:0
5l:0
5l:0 :3\t5
\P
5
\P
5t\tR & ti\ctR
\ti\ctR
s
sd R
.e
.e1se:\:\s
s 7..st6.\5 8 tC
C
0
9
=8
0
0
=
0 9a
a
0\\0
te
2ttte
2 2R
0
R))/\\g e
/o
e cR fu
u
e
orn
re
y :\d
:\ffu
yfu
nn dn
d n a
ai""dtbi;;o
d alla
eb
en
b\n
\nlele""\n;"";;
";
{elsc c o u
if((s
u <
rci= \1 3
2=
E li2m m &eta & ratrd te e(1 ss s )\ti(3
i(tt= =t0 4:0 r)4 ||:0:\(s 0A r\tc\4 2 = = :4t5 5& & sd s
es st1..\31tit8C4
=70 = 2tte 0R))/g t\tR /ocRR e
o e
yfu
n u
dn nn id tbd
i;a oalaeb
nbb lele"\n ;";
{elsc ce eo o
o iftttt(s<
u
u
<
<
< r< <
ci""""=A
<
A \=
\\w
3
1
irE
i..r2E V
F
V li&
n
is
ly
n& eiD iD r:\:\a d tru u D
a
te
D eb se e atip p
i(=
a
21
a =)\r)\
)\r)\
tu
t5u t1 18 r||4
e0
e:00(s :\\\tt0 0\\Artt\\ctt1
1
\rti\4
rti2
r= ti2
v
:0
v1 1=2 2a a8 5l:0
:0
5:0
5l:0 :\\& t5\P
\P
5
& tR
t\\ttR\rtii\c
\rtd
ctR
seRR.e3
.e8ss:\:\s
2 4
ti8t.= 0
1
\8
5tC
0
8
2
=0 5
2a a 0
9
))/
tte 0
0\\ttg/c\\R
R te
teo
feurefn
rne u
d
yu
:\u
:\ffu d
n in
tna
n
di""o d ;an b a l\enl\en"\\n
n
;"";;"";; }
}{}els ls{rc otu u
ic
u ft(s <n r< <
cj_ di""i= i=
2
3 e.rd
F
o eis ly
m sita tir)a //a te cb (1 os an )\(3 d 21 itt0it1 o:0 18 n:0 :0 :0 8 5 \tR 2 1 0
7
4 5
7 \5
8 R Rfeu fn d
n a
d bd bla
eb l\enl\en
}{int}ceso ce eo tu /u trron n
< < d
tW o ta
n ron n iillg ((););in
g n inpp u utteennte terreedd.\n .\nTTrryyaaggaaiin n\\n n\\n n\\n n""<;<endl;
{csw in ers
u itle > c tu <
>
hc1< t_ :/c< h /"fli
j_
\o n giE dhn
c
e
e"tiiF ite
ta
;()tta )/i/o r/frsn
iu
y o u tcs tirh o cle n ho ad isc eec"la< ra<tie ondal;nddefinitionforselectingflight
a c
s e
o
tr c t(c
tp < y c(f_ < o ""n n i,V
D \d nd ri,e s
V riin lvsg 1ata h ralw ria
"tT ri< ce "e "< );/Teci/:c n te od ep d :l;y:y 1"5 to < "":0< ss0< e
trtrn"ie in d g lg;del;ndl;
cab c
s
str o
erc ceb
s
u
c o2ap
tr :/uu
cktp t;y /c(t< < o yo(f_ < jA
ja d ""m i,F \d t"ip iF
rly o 0
4
lvn iD g
tu
:0 u h 0
5 b tTm s raib
);/
ee "i""a
/m lce i<
1
"io c <
4 p
te:0
eo /cd n
0 to :y
d l<
<
y<
;to
<n
n
e "trn
<
d li;g
cac so
c
s es
o
tr su
c
u
o
tr
3tr tr:/c
p
t e
<
< cp y /a cp <
(f_
<
< k
o y ;(t<
"(to
" n \jA
E
i,
D
o nd " irrja
F D
jA
e E t"p l i
m i,e
o
r g ri,"p
a
ly
n h i
r
1
te
at4
t a
u
rD
8 ls:0
te
tu
r "
e
u
e s 0 <
T
m
5
l
" e <c
);/
i
T
);/
m
e
);/
te e
/ /:m
c
);/
c
e /n d1o
c
o d
:
8 :
p "p :p
:0
l
1
o
; y <1
8
p
y 4<
5
to
:0
to ":0
0 e
to
<
s sn
"
0s
<
trtr d <
sie
i n
<
n
l< ;itrn gg<
e
nelg
d
n
;ndl;
d l;
}stes}d erc s
b
fa trrtu
o u eu ca ltp k
://<;y< (tcso "n ja
W ddc i,rio "itvin 1
2ofli 8
2n g l:0 T in 0im
5 p"u );/);et/:ce2o n 2p :0yr5e
te to "d"< s< tr<
< ienne gd nd l;l;
};rlao
c
{p lic h ti{cia cg p rte ae
f_ d sn t,:/dsc /p
a ere_ n n rco g te
ee;rc rle :te ],pn
t_ u_bm
ld liag ce m
h dtieb _([2 beo r0 os],e okm ing,ip lr[u 5itib ];lte
ici_booking/classpassengerpubliclyinheritedfromclassd_bookingandi_booking
p u{v b no
o ln }fd :/e j_(x ge p/lid e
n
= l_e u = g bta 1t_ em li)/ilta n /(d e);/
io film [2
e ((/ih
e el;0u
n sm tth (/ef);/ x bc )//n
fo n
eu frcu mfu
tid no on tim tico lltitin ea n osc ntid slcalan
1ceg 5llar3d a 0o
n nrn aa ntidod neafilb no ito ik ningselection
c o}{s us
j_ ttdd
e
<lee
c cta fl
t_ ili ifl g \m n ifig );/r\n t;E tiu an (/tifm )te ;o n
//m erfcu
cp cn
;a
a cs ;cs oe lln an 3ae
c details";
{i}ntc g o
o in euu n > ttu
<
>
< t<
<
<f_ lre_"">
<"re
n
Lc\\n n h aFG s
e\n etcd
s en
r\N kn d ()/ N /trra o :M "e h :" ea ku gteree ns dte e:1 re::\ inn p uT tary savlg ea-p lid
}{vc }{cifo (gin
irc
deo
>
e n
m
>
u d o rg n < g _2 "d
e n)// ea:c
;e o W rne _ sd c o:\h
itn n ie o
tg cnk itan (le )p ;/k-p /efu nn ctis ro ern dd ecta .a\nF llilesm oa fthaeinp\n
res\sn:2
ass"e<
::"<;endl;
o iin n u > tt< <<
> < ar_
e "eC
g A E e g
m ;d ;leD "ta il;c:ilta Itd ()//
il::""a ;.f_ o m o nger
co
c o
o u
u > ttp<
<
> <c ""m N
G
A n
\E a
o
g
m a
e \n ie m ata ta
:d "ilec <ir"td :"N
< n
< o
<s g.(E 6g
e"n < dte a< im
n grd ee itn edisln d ):"
r:\< <n l< ;< ;";e"nd <d l< ;ld ;l_ na/m dis ep <l< ay eind gl;details
}in{c
}ttre g
grtu
u e
edtttu n <
rn rr("i)/(C )///rffn
o
/iu
n
rn ;ncctitioon
o t< o
tog
:<
ge
e m
ttpc a n _
nyrrfd
oo r< d <oe
inilm
n ensl;atiticobnoaolk bin gking
{ino
{}v p risnp p np fu ;u nto sem p fo rta te srfo oco
cid ou ut< t< <""()/A P
F
N N le
rO irg
a R
m J n h :" :" c:ti<
t:"
e "< o < < n<
ed pT o n
f_ etijo r"d d n
< << ia < pen
< le an n d
< ld lt;;o
;< l;e"jd "< << < l_n rd
da
om
m ee<s<tie n bd olo ;king
{}vo c o
idud is< < pD D
i(N
P )/O /p p
RfiJ v ua a :" an rltu
"c<
T
ti< < rim
ro nT
p n r:m d < e i::s""ee
<
< p to
e < la
n
d < ja d< ytlo deta ilsel_n fo rl;lm i;nte rn <aetin od nla;lbooking
}{c;la}ssc co o ut< t< <""A F
N rle irg
a m ivh :" t:"
e
a rltu :< T im <
e d o f_ eiji:m "in < < a<
e m to < n < d
ja i;l;"jd"i<<e nd a e<
pu ro te cd p rte /ao du y:/m /_ plied rc n ,o t/ra/d
te cn la ,s\d s];am erfo rfu p aecyr,tim evn tser_id;
p ilb
c
{v o
n h
o ltn ic cia g :/ ic
hu p
o taih cy
ts b e
s 1<
w b
o
e "m ta \n c1 ee i\te l[1
mn.(kD 1i)//
cb
;0n fH u o d
nrtsew ,m
c d
ittix w ab orh te
n o rdu d s ch
ald
o vo
e )sn c\n ylsa,o u\e2ru a.C ;tilio rkendto aitn Cp daardd y? e(2 fi:\n )\in "t;io \3n.N foertp Baayn m kiengt(3 m )"e;thod
{cso w a nc sito >
e icn
<
> 1> < :/c>
(c h /"c< \o
cov
n
ain
E E ;ttrn
n n ie
)// o te te
b snriw C
y co
a cu c cn (1
:ie"cc ;c":"
cac c
c
b
so
c eirin
o n eu u
u 2at> tt> :/k<
>
<
<
> ;/c< < d
c
c oa"""n
r\te
rv\\\s
d;T
n
n
ds
n
E
E ;iw n io ate te nrrrsC e
a
c
e
aV
c
a
x
rV
p
rtis
p
d
d o irn
i r n
yo
y
o
S
o
d
d
.:.u ."a
:d
a "te ;te ;:" es;;sful\n";
c
b o i
eirn n eu u 3at> >
t >
< < d
p a
" te n E
T ; n
r a o te n r rd s p
a ; c a ti o s n w o
S r
u c :" c ;
e s s fu l\ n " ;
cac so
c o u t:/k> <;/c<
>
< < b os "n
"a B \\sn drS aY
k i;tn e
o iio kte
le u s;rch A tp u ;a
vv ya so as ilu ran sw rib eb l:le"ear:d n\1
;c te k:".W ;des ;:"e<s< tP b"aa;c nkB ;ank(1)\2.NabilBank(2)\3.StandardCharteredBank(3)\4.AMPBank(4)\5.Others(5)";
derc c
b
fa eo o ritu n
u eu ua ltt> rk ://<
<
n ;< <
cp u
p oa ""an\\y
e n
n d sW
_
E
T _ itrn
w ia d
ooro n n rn d silg a (rc );in tiep o s u
d
tS o eu ncte :" cre d s.fu \nT l\n ryagain\n\n";
};o
}{v fipn
}ifs
n d.}c w clro
tr ein tas ec m te
e ((c ();/ fil fih n /ec a (p
(" lr;eo *d )as osin
& m p
n sdg ,s exs
e n ta
fii)/ztig l/e ceu o .tn p
fx (p t" )//));/ ,ifo il/w e::b
s ri ctrienag tirto
a o yen |ilfio fo ls e::a rdp om p);esticbooking
{v oi{w fiis d
a t
tr s c f=s
e a e
a 0 mn ; g e fo l
e t i
r uc p k t " t(i o m t e s ti f c . t x c t" ti o ,i n
o s t o :: b c a
i n n a c ry |i ti
o c s k ::a e t
o
fo fs
h
}{(fe
u
fif(p illp
n tr
t.
se.o rw e (fo
g
.e d
a re;/it< m itu
s
d
/p en
p
((c t((c
n fi
)();/ n
r\()! h
rh
(
/h
"
a
d= d
r
aixo o
r)// * m
)
*n & )& ctiA e
p h p s , eg ti
,so iz
cv c
fike zie1 e n
e .
o t o x
g f(
ilf(c
t" p
spk
,
)
rne
i ;/
))fo r;//is / r ::b e
wrib a d i n
tin i n a r
g
ggto y |i
fi
caafil
o
l e s eeled:\n"<<"d
::a p p p );
);/ // f
/ o r r w e a
ri tingto fileanewfile
}ic fefo u= cu
c
f+
t.= t.tlc< 0 +
rlo ue
)// sa ifeid < f="(c
/c c=
n
ee lct0
Y m as ru p
e *n)& rla np yb ,t" d
sn if)ezd itafe\u ti
po ef(d
n
lp ))t;nu //n red ale din in g nnocth errecordfrA om m ofiuln etrefunded:Rs1000\n";
{}vo rfifo n
ih d
om
n .u
silc ft.a=
o
sh m o v
eem
<sec"e (" T
k();/ tifo d i();//
c
co k
k mpe
o el,o p
n
sno tiisn itn
c rg 1fo .)/ n
tg fio
.x tu lfil
x tet" o
;,//c "n d n"o ;m etito esg ticoe .td xt" filp );e//rreo nam kig
n eg tfilneewfile
fo
{w p
ifn {is
a
fpt(p
u tr e
e r;/g 0
a
e
(fo nd
;a ug
)((c te\;/)n ru h t= (a;t(i "rd *o l))// & tm x
yp ed ,e s/fetiiz u cn e.ilt< io xstig f(o
t" pn ,i)o ;/;sn r;/r//::d
c
ebh ain dc ink
a ry g);/fin/lo epretincin
}fo if}fo
c
f+
b u=
or.u d
t.c+e t.c.a
u ist<
0r<lo /e
k eip <
;n s
ta p
ifed
"(c n r(e
();//
r/d Y()cm is
h o= u e
a p n x
rrp s*sn
a ti)& n c gkh p f,fil stic
t" ta fie< k
zo "re
n n o e rn f(fo p d p n lu
))d readinganotherrecordfromthesamefile
}o
{v o c
fip
o
iis
n
(ffs
d u
.sc w
=
tr=t<
srla ro e0ein
)//
tam "m
e te T
((c ifil cf=
l)fitfih
kn /ec
= e("
a irtc (0*p l,o
n
i)n & ao (te p tin rs,fo rn
texfi,a
s
g n
iu
n
a zltin
o g o d
fo efon fn au
(<p< l.n )/tited
));/ /o
x o n t" /n p,iri
w le;o n tiss n ::ag b ianea
to filfilry ltieec |ifo oesrt::a inte pp rn );ationalbooking
{}v o
fo
{w ifn d
a
fs
ih
ttr
fu(p
fi illft.trs
n
e
e . w ega
(fo as ;n
re;/im
ce
i d t ug
p
e();/
e
fo
((c te
n ((c
riu
rn
c h p
ir(h
kt(a
)!"l;eo "=
arin ti is n
r *te
x
in
*))// te
& )& rg rp
cn p hy s,)// e
s tiizeo
cfize n
e
k
u n
e io n ao ag f(lc1f(l.p t.x
p t)x))n t" ;/t" ;
to
r///,iru ,w o
iari
e cd ::::b
t in
b
i nicg
n
n
g inato ary
o lryd n
|i|iko
fio
e lses::a
w ::ae
fil
ppp);/);///ow
;
pre itnin inggto filaenewfile
{ e p
c
f+ o .e d
+ u s
t< / p i <
n i (
" c );// Y e o d
m u i s
r e p
A
n l
b
ti a o
n v
g d e ti i ta
f c p k i l
n e s t
r fo i s b n e d i n g d e l e neotherrecordfromoldfileed:Rs1000\n";
te d :\ n " < < " A m o u n t r e fu n d
}ic
rfifo fe}fo n (fo u= .u cu t.= t.tlc<
o 0 rlo e
)//
<sec"e sa end();//
i\f();/ T f= (/ic =h k rlc 0
oe a
l,o p trs*n tinio
)& n o rn ngtpo afo
,lfils
l.te u ifezo
.xn
e u d o n )\;n f(d //""p i;neto
));l//ertien adinlg a
{}vo p ihd
a m
n silft.a c= o
srm h v
eem n ("
g kfo tite)in cru kc
te te)= ;"tirn=
s
(*ai)in tg x,fi)// l1 fo tu tn t"
x ca t"
f(tirg t,o
d
)nt"
teo rn::ag
ecash deb
tico ik gp
nd afian l.filtx
ler);// ot"roti);/ pce /k
rn een itnagm filin egnewfile
fo
{wifn {is cfp
f+
t(p
u tr or.t.+
d e
eu .;/g0
a
e
(fo
ist<
;a
/e eip <
;n
d tu p "ic(((c n \);/ n r(e rh Yi/p (d
m
(ao isu en
ip n rxti*la te
& )/n c/rp n
c
y
gkp h e a
sft"
d tiiz
e ifcita <ek n< o iiln
n es ln .p d xp ;/;n
n
lu /r,ird in n ry
}if}fo
fo b
(fu= uu = t.ca 0r<lo k
)// "sa ifed ();//
f= kc= eh tc0a l,orp sn t)& in rg n uo ,fil s
ntd zp
efo "e< u o <n f(ed fo p n))d;l//;readinganotherrecordfromthefile
}{inc tcm
o t<
asis n()/
T
/b m
ic
aoe in
n
fu
o
n
fo
cti1o;// n
la
la //as rs ,p d iw _h a _ b
s o il,sn /o kn iig n g ep g ri1 d
p r;/o /o ab arje cb tle
fo fo rcsc ra cs la sssp si_ ad p b y_e ob
a soe skn oein tkg ine gr
ino
c
{d
c h
o tu ctd h< o in c
< p "h u 1 \yn m
t;/ \en <\B
;/e
c /n
lh
t\o
o
\tP
n tao
ti\n to \W
rte p k a 2c g
ye
;// te
<le
o
ec o
u
b
v
rvm
je
F
c
ia
lirF
e ia tT
g
fo
ih
o
b th
rlF etis liclg <)h t\R \ctet> \ets\2
m r.C v<a ti<
no bn lS yi> s te
c>et(m s>)"!<\< << \te\<tn> \d <l.C < <>ee\"n c;k"d;Tl;icket(3)\n\t\t\t\4.Exit(4)"<<endl; system("CLS");
c
c {s
o
io
nw u
u > c ttita <
<
> cc <
< h cte "(c"\\t;n
h h \)/tn /t< w \> < t> lcte d\;h
< 1a >
t).s B
;iclo aa > os.D e< o >
n kte < > rel< gy > o < t(1 u> rk ce
>\n ts
<
h o > tia < a
<ff>
:" o
\;cn"k\2
r>ad a
>c <ele> <p
F g r< ih <2 >
n <\t> 3d l>
;< h
s y {sso ien
w u ic 1
tm > ta
c :// ("
<
>
h sp
c C
(ce co h "L 1\p 1n S ://a "\P
)// in
fy io \en 1
e(re
n n rs be r);eilo
o
er(o m seh nw s
te icttick rch dyo F
ocm ig
tiauo sh ren eo sts ti(1
p ctillo ti)sn e<t.I<nete nrdnl;ationalFlights(2)"<<endl;
casb per1
c 1
2 e..2d
d
p
g
m a:..ik
_
e
is
te o
/_
p
d
;n fis p
fil ro n
e
d
_ ta e
rr__
)d ;((p b d _e1
();)ta
oe
c1 ta ilk();//
);/ (iie n
/);li);//
c sfg a u
(); (); n
fll();
c
to cctirn ro ean c a a te
oanllfiasleticket
p
p
c rl1 1
2
te :/.d
p
g
m
p _
e
a
te p or;n
d y n
p
fil e
d e ir)e ta
(d e
_ r;(ilo
id _p ie
ta ck2 ta
1 ilh n (u
);p
g
ie //);lucc
ts
in
u
k (); nte tic
barc
c }s
e//o afec y ks
o
d
2 c
;rer
te : etu
o
c m
fa
a untu (
b
r"n c <C e < m li
L
a
/"w
n
S
k
W
a g " im o
n
); ti ro (n c ;g n
k g
e
n
t in p taelnto tercerd e\a nte Try fila egain\n\n\n"<<endl;
u o t u < t < < < \ 1 " .
\ nD Po l e a e s ti
e c e F
n i
teg h r ts y o (1 u ) r \ n
o p \2 ti .I o n te.:r< "n aeti<n oen na dlo l;F;kliin ghts(2)"<<endl;
{}e
{c i
f(c
ls
n
o io
a n e u
>
h>c
u
n
>ctt>
>
t1
i> f<
=n
<
e
(c lt<
c =
l< h
t;;ih icc """k
1
1k P
;
)Pelet(ans);/e/feunte
=lti= er(ao 2n)s);/ e/fein np nte c
cttitire
ro yyn n
o ou ua
c rrP lP N NR
fo R rrd no o"te m <
e< <s titic d b l;o
cangcc ea ln atico en lation
caysb }{}ete erlc
cserc a ieo
ean
n
://tu k u ren n
< < m W
a e i.n lal()eo ;yn ig
u
cu
o n te ca
tirce(1
ld fo
e)\n T\n irny .a
:"g rn
sa
a<
rin n e\n
o n \n d a\ln
nl;a"l;Flights(2)"<<endl;
s {cifc
c
e
3o
m
h iic
(c
l oe
n
s u (" h
> u
e t;fC
>
c 1
t>
>
o <
>
k i =
<
n
f
L r<
ti> (c c<
= ;<
c
dh
S ""i"s\)e
1
k
h 1 )n
1
1
;P p ;P
t(n
=
D l= etile a(2a
);}
m s)s
ne
/);/ efe
gse
u/efn
btin o
cte
oFkrig
tite o rtirn
ed
yo h
y co u ts
acu llrarrP
ko
to N pt\n
R dtiR
d 2
ios
eta
nn p
.Io"n
la .:<
ilte
"l:ay<< d < eoa netid
m no le;d sd til;cticketdetails
{ o
h i n eu c t k n ti < ;
c "
k P a s e te y o u P N n o . " < < e n
{srerce
}b } e a otu l s u:/;ft"o
e rn << m "a W inr()o;nginputentered.\nTryagain\n\n\ns"ti;cticketdetails
e n u n c o n l to d i s p y d o m e
d ceo afa u lu tt4 :/k iro 'w ro o np g niin p
=u t'n seo
rcytu
st<
ute
rnm"\(;n
<0 "CL\tS
\n \t"\);t\tBroughttoyoubycode-projects.org";
re}w tu c}io n
hru n il> te< 0rc >(i;< ntu i"n u p\n tpu r\n < = <
m t;\= nD 'a Y W n r(); ||o y n in u g w iu tsp =h u t'yto e )c ;//te ocn ro etin d nd \uniT e
ti:(y ory na /Y fo g)"a rd i<n o< .\n w e\h nnd il\n el;\nlo "o<p<endl;

OUTPUTS:
Features:
1. Domestic Flights
2. International Flights
3. Payment options
4. Cancel Flights
5. Check Tickets
REFERENCE :
C++ BY SUMITHA ARORA

You might also like