C Project On Library Management by KC
December 13, 2022 | Author: Anonymous | Category: N/A
Short Description
Download C Project On Library Management by KC...
Description
?
OBIEDVKCHFCGCEX BC\XJAJBOXC JEX\DHSBXJDE DSX^SX BD BDG^ G^JK JKC C\R HD HDR R
SRCH SR CH
BDGG BD GGO OEH EHR R
Vc tmoei okk tmdsc wmd movc mckpch us je prcporjef oeh bdgpkctjef tmjs bdgputcr prdfroggjef prd`cbt de ‛KJL\O\Z GOEOFCGCEX‗ os o ecbcssory oeh jetcfrok port da B.L.R.C sykkolus je b++. Vc sjebcrcky tmoei dur porcets adr cxtcehjef tmcjr suppdrt. Vc orc tmoeiauk td tmc olkc fujhoebc, bddpcrotjde oeh ossjstoebc ly tmc bdgputcr aobukty Grs. Rmozjo Rjhhjqj adr mcr bdestoet mckp ot vorjdus stofcs. Vc wdukh obiedwkchfc dur frotjtuhc td dur prjebjpok prjebjp ok Gr. Q Qj`oy j`oy Iug Iugor or adr go goijef ijef tmc aaobjkjtj objkjtjcs cs adr borryjef dut tmjs prd`cbt.
Kost, lut edt tmc kcost, obiedwkchfc js huc td okk wmd mckpch us hjrcbtky dr jehjrcbtky je tmc bdursc da prd`cbt
Xmjs js td bcrtjay tmot ICQOK BMDSHMO\Z BMDSHM O\Z stuhyjef je bkoss ]JJ da QJirog Mjfmcr Rcbdehory Rbmddk , Lmdpok movc subbcssaukky bdgpkctch tmcjr prd`cbt ‛KJL\O\Z GOEOFCGEX‗ wmjbm js ecbcssory oeh jetcfrok port da B.L.R.C sykkolus je tmc ycor ??-?< uehcr tmc fujhoebc da Grs. Rmozjo Rjhhjquj , je b++ .
Rjfoeoturc0 (bdgputcrr aobukty) (bdgputc Rbmdd Rbm ddk0 k0 Qji Qjirog rog Mjfmc Mjfmcrr R Rcb cbdeh dehory ory Rb Rbmd mddk dk
Hotc0
B++ wos hcvckdpch ly L`orec Rtrdustrup da OX&X Lckk Koldrotdrjcs je tmc corky ?:=>'s, oeh js losch de tmc B koefuofc. Xmc eogc js o pue - "+ +" js o syetobtjb bdestrubt usch je B (td jebrcgcet o vorjolkc), oeh B++ js jetcehch os oe jebrcgcetok jgprdvcgcet da B. Gdst da B js o sulsct da B++, sd tmot gdst B prdfrogs boe lc bdgpjkch (j.c. bdevcrtch jetd o scrjcs da kdw-kcvck jestrubtjdes tmot tmc bdgputcr boe cxcbutc hjrcbtky) usjef o B++ bdgpjkcr.
B++ js je goey woys morh td botcfdrjcs. Bdgporch td osscglky koefuofc jt js mjfm-kcvck, lut jt ecvcrtmckcss jebkuhcs goey kdw-kcvck aobjkjtjcs td hjrcbtky goejpukotc tmc bdgputcr's gcgdry. Jt js tmcrcadrc oe cxbckkcet koefuofc adr wrjtjef caajbjcet "systcgs" prdfrogs. Lut adr dtmcr typcs da prdfrogs, B++ bdhc boe lc morh td uehcrstoeh, oeh B++ prdfrogs boe tmcrcadrc lc portjbukorky prdec td bcrtoje typcs da crrdr. Xmc cxtro dl`cbt-drjcetch aobjkjtjcs je B++ orc portky jebkuhch td dvcrbdgc tmcsc smdrtbdgjefs.
//*************************************************************** // MCOHC\ AJKC SRCH JE ^\D@CBX //****************************************************************
#jebkuhc;astrcog.m5 #jebkuhc;bdejd.m5 #jebkuhc;sthjd.m5 #jebkuhc;prdbcss.m5
#jebkuhc;strjef.m5 #jebkuhc;jdgoejp.m5
//*************************************************************** // BKORR SRCH JE ^\D@CBX //****************************************************************
bkoss lddi {
bmor ledY1W9 bmor leogcY3>W9 bmor oeogcYW9 pulkjb0
vdjh brcotcTlddi() {
bdut;;"[eECV LDDI CEX\Z...[e"9 bdut;;"[eCetcr Xmc lddi ed."9 bje55led9 bdut;;"[e[eCetcr bdut;;"[e[e Cetcr Xmc Eogc da Xmc Lddi "9 fcts(leogc)9 bdut;;"[e[eCetcr bdut;;"[e[e Cetcr Xmc Outmdr's Eogc "9 fcts(oeogc)9 bdut;;"[e[e[eLddi Brcotch.."9 }
vdjh smdwTlddi() {
bdut;;"[eLddi bdut;;"[eLd di ed. 0 ";;led9 bdut;;"[eLddi Eogc 0 "9 puts(leogc)9 bdut;;"Outmdr bdut;;"Outm dr Eogc 0 "9 puts(oeogc)9 }
vdjh gdhjayTlddi() {
bdut;;"[eLddi bdut;;"[eLd di ed. 0 ";;led9 bdut;;"[eGd bdut;;"[eGdhjay fcts(leogc)9hjay Lddi Eogc 0 "9 bdut;;"[eGdhjay bdut;;"[eGd hjay Outmdr's Eogc da Lddi 0 "9 fcts(oeogc)9 }
bmor* rctled() {
rcture led9 }
vdjh rcpdrt() {bdut;;led;;sctw(2>);;leogc;;sctw(2>);;oeogc;;cehk9} }9
//bkoss cehs mcrc
bkoss stuhcet {
bmor ohgedY1W9
bmor eogcYW9 bmor stledY1W stle dY1W9 9 jet tdice9 pulkjb0 vdjh brcotcTstuhcet() {
bkrsbr()9 bdut;;"[eECV RXSHCEX CEX\Z...[e"9 bdut;;"[eCetcr Xmc ohgjssjde ed. "9 bje55ohged9 bdut;;"[e[eCetcr Xmc Eogc da Xmc Rtuhcet "9 fcts(eogc)9 tdice7>9 stledY>W7'/>'9 bdut;;"[e[eRtuhcet \cbdrh Brcotch.."9 }
vdjh smdwTstuhcet() {
bdut;;"[eOhgjssjde ed. 0 ";;ohged9 bdut;;"[eRtuhcet Eogc 0 "9 puts(eogc)9 bdut;;"[eEd da Lddi jssuch 0 ";;tdice ";;tdice9 9 ja(tdice77?) bdut;;"[eLddi Ed ";;stled9 }
vdjh gdhjayTstuhcet() {
bdut;;"[eOhgjssjde ed. 0 ";;ohged9 bdut;;"[eGdhjay Rtuhcet Eogc 0 "9 fcts(eogc)9 }
bmor* rctohged() {
rcture ohged9 }
bmor* rctstled() {
rcture stled9 }
jet rcttdice() {
rcture tdice9
}
vdjh ohhtdice() {tdice7?9} vdjh rcscttdice() {tdice7>9} vdjh fctstled(bmor tYW) {
strbpy(stled,t)9 }
vdjh rcpdrt() {bdut;;"[t";;ohged;;sctw();;eogc;;sctw(?>);;tdice;;cehk9} }9
//bkoss cehs mcrc
//*************************************************************** // fkdlok hc hcbkorotjde ad adr st strcog dl dl`cbt, dl dl`cbt //**************************************************************** astrcog ap,ap?9 lddi li9 stuhcet st9 //*************************************************************** // auebtjde td wrjtc je ajkc //**************************************************************** vdjh wrjtcTlddi() {
bmor bm9 ap.dpce("lddi.hot",jds00dut| jds00opp)9 jds00opp) 9 hd {
bkrsbr()9 li.brcotcTlddi()9 ap.wrjtc((bmor*)&li,sjzcda(lddi))9 bdut;;"[e[eHd bdut;;"[e[e Hd ydu woet td ohh gdrc rcbdrh..(y/e4)"9 bje55bm9 }wmjkc(bm77'y'||bm77'Z')9 ap.bkdsc()9
}
vdjh wrjtcTstuhcet() {
bmor bm9 ap.dpce("stuhcet.hot",jds00dut| jds00opp)9 jds00opp) 9 hd {
st.brcotcTstuhcet()9 ap.wrjtc((bmor*)&st,sjzcda(stuhcet))9 bdut;;"[e[ehd bdut;;"[e[e hd ydu woet td ohh gdrc rcbdrh..(y/e4)"9 bje55bm9 }wmjkc(bm77'y'||bm77'Z')9 ap.bkdsc()9 }
//*************************************************************** // auebtjde td rcoh spcbjajb rcbdrh ardg ajkc //**************************************************************** vdjh hjspkoyTspl(bmor eYW) {
bdut;;"[eLDDI bdut;;"[e LDDI HCXOJKR[e"9 HCXOJKR[e"9 jet akof7>9 ap.dpce("lddi.hot",jds00je) 9 wmjkc(ap.rcoh((bmor*)&li,sjzcda(lddi))) {
ja(strbgpj(li.rctled(),e)77>) {
li.smdwTlddi()9 akof7?9 } } ap.bkdsc()9 ja(akof77>)
bdut;;"[e[eLddi hdcs edt cxjst"9 fctbm()9 }
vdjh hjspkoyTsps(bmor eYW) {
bdut;;"[eRXSHCEX HCXOJKR[e"9 jet akof7>9 ap.dpce("stuhcet.hot",jds00je)9
wmjkc(ap.rcoh((bmor*)&st,sjzcda(stuhcet))) {
ja((strbgpj(st.rctohged(),e)77>)) { st.smdwTstuhcet()9
akof7?9 } }
ap.bkdsc()9 ja(akof77>) fctbm()9
bdut;;"[e[eRtuhcet hdcs edt cxjst"9
}
//*************************************************************** // auebtjde td gdhjay rcbdrh da ajkc //**************************************************************** vdjh gdhjayTlddi() {
bmor eY1W9 jet adueh7>9 bkrsbr()9 bdut;;"[ bdut ;;"[e[e[ e[e[tGDH tGDHJAZ JAZ LDDI \CDBD\H. \CDBD\H. . . ."9 bdut;;"[e[e[tCetcr bdut;;"[e [e[tCetcr Xmc lddi ed. da Xmc lddi"9 bje55e9 ap.dpce("lddi.hot",jds00je|jds00dut)9 wmjkc(ap.rcoh((bmor*)&li,sjzcda(lddi)) && adueh77>) {
ja(strbgpj(li.rctled(),e)77>) {
li.smdwTlddi()9 bdut;;"[eCetcr bdut;;"[e Cetcr Xmc Ecw Hctojks da lddi";;cehk9 lddi";;cehk9 li.gdhjayTlddi()9 jet pds7-?*sjzcda(li)9 ap.sccip(pds,jds00bur)9 ap.wrjtc((bmor*)&li,sjzcda(lddi))9 bdut;;"[e[e[t \cbdrh Sphotch"9 adueh7?9 } }
ap.bkdsc()9 ja(adueh77>)
bdut;;"[e[e \cbdrh Edt Adueh "9 fctbm()9 }
vdjh gdhjayTstuhcet() {
bmor eY1W9 jet adueh7>9 bkrsbr()9 bdut;;"[e[e[tGDHJAZ bdut;;"[e [e[tGDHJAZ RXSHCEX \CBD\H... "9 bdut;;"[e[e[tCetcr Xmc ohgjssjde ed. da Xmc stuhcet 0 "9 bje55e9 ap.dpce("stuhcet.hot",jds00je|jds00dut)9 wmjkc(ap.rcoh((bmor*)&st,sjzcda(stuhcet)) && adueh77>) {
ja(strbgpj(st.rctohged(),e)77>) {
st.smdwTstuhcet()9 bdut;;"[eCetcr bdut;;"[e Cetcr Xmc Ecw Hctojks da stuhcet";;cehk9 stuhcet";;cehk9 st.gdhjayTstuhcet()9 jet pds7-?*sjzcda(st)9 ap.sccip(pds,jds00bur)9 ap.wrjtc((bmor*)&st,sjzcda(stuhcet))9
bdut;;"[e[e[t \cbdrh Sphotch"9 adueh7?9 } }
ap.bkdsc()9 ja(adueh77>) bdut;;"[e[e \cbdrh Edt Adueh "9 fctbm()9 }
//*************************************************************** // auebtjde td hckctc rcbdrh da ajkc //****************************************************************
vdjh hckctcTstuhcet() {
bmor eY1W9 jet akof7>9 bkrsbr()9 bdut;;"[e[e[e[tHCKCXC RXSHCEX..."9 bdut;;"[e[eCetcr bdut;;"[e[e Cetcr Xmc ohgjssjde ed. da tmc Rtuhcet Zdu Voet Xd Hckctc 0 "9
bje55e9 ap.dpce("stuhcet.hot",jds00je| jds00dut)9 astrcog ap) ap) {
ja(strbgpj(st.rctohged(),se)77>) {
adueh7?9
ja(st.rcttdice()77>) {
bdut;;"[e[e[tCetcr tmc lddi ed. "9 bje55le9 wmjkc(ap?.rcoh((bmor*)&li,sjzcda(lddi))&& akof77>) {
ja(strbgpj(li.rctled(),le)77>) {
li.smdwTlddi()9 akof7?9 st.ohhtdice()9 st.fctstled(li.rctled())9 jet pds7-?*sjzcda(st)9 ap.sccip(pds,jds00bur)9 ap.wrjtc((bmor*)&st,sjzcda(stuhcet))9 bdut;;"[e[e[t Lddi jssuch subbcssaukky[e[e^kcosc Edtc0 Vrjtc tmc burrcet hotc je lobisjhc da ydur lddi oeh sulgjt wjtmje ?3 hoys ajec \s. ? adr cobm hoy oatcr ?3 hoys pcrjdh"9 } }
ja(akof77>) bdut;;"Lddi ed hdcs edt cxjst"9 }
cksc bdut;;"Zdu movc edt rcturech tmc kost lddi "9 } }
ja(adueh77>) bdut;;"Rtuhcet rcbdrh edt cxjst..."9 fctbm()9 ap.bkdsc()9 ap?.bkdsc()9 }
//*************************************************************** // auebtjde td hcpdsjt lddi //**************************************************************** vdjh lddiThcpdsjt() {
bmor seY1W,leY1W9 jet adueh7>,ak adueh7>,akof7>,hoy,aj of7>,hoy,ajec9 ec9 bkrsbr()9 bdut;;"[e[eLDDI HC^DRJX ..."9 bdut;;"[e[e[tCetcr Xmc stuhcet‚s ohgjssjde ed."9 bje55se9 ap.dpce("stuhcet.hot",jds00je| jds00dut)9 ap?.dpce("lddi.hot",jds00je| jds00dut)9 wmjkc(ap.rcoh((bmor*)&st,sjzcda(stuhcet)) && adueh77>) {
ja(strbgpj(st.rctohged(),se)77>)
{
adueh7?9 ja(st.rcttdice()77?) {
wmjkc(ap?.rcoh((bmor*)&li,sjzcda(lddi))&& akof77>) {
ja(strbgpj(li.rctled(),st.rctstled())77>) {
li.smdwTlddi()9 akof7?9 bdut;;"[e[eLddi hcpdsjtch je ed. da hoys"9 bje55hoy9 ja(hoy5?3) {
ajec7(hoy-?3)*?9 bdut;;"[e[eAjec mos td hcpdsjtch \s. ";;ajec9 }
st.rcscttdice()9 jet pds7-?*sjzcda(st)9 pds7-?*sjzcda(st)9 ap.sccip(pds,jds00bur)9 ap.wrjtc((bmor*)&st,sjzcda(stuhcet))9 bdut;;"[e[e[t Lddi hcpdsjtch subbcssaukky"9 } }
ja(akof77>) bdut;;"Lddi ed hdcs edt cxjst"9 } cksc
bdut;;"Ed lddi js jssuch..pkcosc bmcbi!!"9 } }
ja(adueh77>) bdut;;"Rtuhcet rcbdrh edt cxjst..."9 fctbm()9 ap.bkdsc()9 ap?.bkdsc()9 }
//*************************************************************** // ASEBXJDE XD HCKCXC OKK XMC HOXO //*************************************************************** vdjh hckctcokk() {
bkrsbr()9 jet o9 bdut;;"^rcss ? td hckctc okk tmc hoto";;"[e"9
bdut;;"^rcss < td fd lobi";;"[e"9 bje55o9 ja(o77?) {
bkrsbr()9 bdut;;"^KCORC LC RS\C XMOX ZDS MOQC XOICE XMC LOBIS^ DA ZDS\ HOXO LCBOSRC XMC AJKCR JA DEBC HCKCXCH VJKK EDX LC OLKC XD \CRXD\CH‗";;"[e"9 \CRXD\CH‗";;"[e"9 bdut;;"|^rcss oey icy td bdetjeuc";;"[e"9 fctbm()9 dastrcog hckstu("RXSHCEX.HOX",jds00trueb)9 hckstu.bkdsc()9 dastrcog hckldd("LDDI.HOX",jds00trueb)9 hckldd.bkdsc()9 bkrsbr()9 bdut;;"Okk tmc hoto hckctch";;"[e"9 bdut;;"^rcss oey icy td fd lobi";;"[e"9 fctbm()9 rcture9 }
cksc rcture9
}
//*************************************************************** // ASEBXJDE XD XOIC XMC LOBIS^ DA ZDS\ HOXO //*************************************************************** vdjh lobihot() {
bkrsbr()9 bdut;;"[Xmc loiupupch ajkc wjkk lc stdrc je";;"[e"9 bdut;;"^rcss oey icy td bdetjeuc";;"[e"9 fctbm()9 systcg("sovc")9 // ROQC JR O LOXBM AJKC VMDRC BDHJEF JR FJQCE OX XMC CEH DA ^\DF\OG bkrsbr()9 bdut;;"ZDS\ HOXO MOR LCCE ROQCH XD HDBSGCEXR RSBCRASKKZ !";;"[e"9 bdut;;"[^rcss bdut;;"[^ rcss oey icy td fd lobi";;"[e"9 fctbm()9 rcture9 }
//*************************************************************** // OHGJEJRX\OXD\ GCES ASEBXJDE //**************************************************************** vdjh ohgjeTgceu() { bkrsbr()9
jet bm?. LDDI JRRSC"9 bdut;;"[e[e[t>2. OHGJEJRX\OXD\ GCES"9 bdut;;"[e[e[t>8. C]JX"9 bdut;;"[e[e[t^kcosc bdut;;"[e[e [t^kcosc Rckcbt Zdur Dptjde (?-8) "9 bm7fctbmc()9 swjtbm(bm) {
bosc '?'0bkrsbr()9 lddiTjssuc()9 lrcoi9 bosc '
View more...
Comments