c++ project on police stations oftware-131216072242-phpapp02.docx
TRANSCRIPT
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
1/32
This is to certify that the project entitled
Police station software
is prepared under my guidance and supervision by
NAME:-SHUBHAM KUMAR
ROLL NUMBER: !!
"LASS:#$$ B
SUBJECT: COMPUTER SCIECE
SESSIO:!"#$ % !"#&!
SUBM$%%E& %O :- MRS! SAN'EE%HA
S$'NA%URE:- !!
1
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
2/32
Ac(no)*edgmen+I e'tend (y deep sense of )ratit*de and sincere than+s to o*r
s*,ject teacher Mr! SAN'EE%Afor his -al*a,le s*pport and
)*idance in carryin) (y project wor+ .
I also e'press (y )ratit*de to all the fac*lty (e(,ers/ parents
and (y fellow (ates who ha-e helped (e to carry o*t this
wor+. 0ast ,*t not the least/ I than+ (y al(i)hty 1od for 2is
,lessin) showed on (e d*rin) this period .
CODING OF PROGRAM2
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
3/32
#include#include#include#include#include#include#include
/***************************************************************************** Structure for Date *****************************************************************************/struct date{int d;int m;int ;
!;
/***************************************************************************** Structure for Details of "rime of "riminal *****************************************************************************/struct court{char crime2$%;char act2$%;char cour2$%;char state2$%;
!;
/***************************************************************************** Structure for &hsical Description of "riminal*****************************************************************************/struct descp{
char colour2$%;char face2$%;
char imar'2$%; //(D)+(,("-+( -0SD),0(+()S )+".3char height4%;!;
/***************************************************************************** Structure for Details of ,.(.0. *****************************************************************************/struct police
5
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
4/32
{char station6$%;char 7r8no1$%;date date8arrest;!;
/***************************************************************************** "lass 9 "0((-: 9 for getting all information about ** "onict and *****************************************************************************/class criminal{
char name2$%;char se5%;char conno1$%;char age=%;
char address6$%; //-DD0)SS , "0((-: ),0) -00)S+.court "?0+;police &:(");descp des;public@int nchec'char arr%3; // ,?"+( + "A)" +A-+ (&?+ (S +// ?)0(".
int s8chec'char a%3; // ,?"+( + "A)" +A-+ +A) (&?+ ,0// S)B A-S :C 1 "A-0-"+)0 ( 0 , :Coid inputoid3;
oid outputoid3;oid delete8recchar con8no%3;int dchec'char n%3;oid displa3;oid remoe3;int menu3;oid modif3;oid list3;oid empt3;int conchec'char b%3;!;
// > )nd of "lass"riminal
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
5/32
int criminal@@nchec' char arr%3{int i$;Fhile arri%G9H$93{if arri%>4=3IIarri%J63IIarri%
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
6/32
****************************************************************************/oid criminal@@inputoid3
{clrscr3;thisP>empt3;criminal ;int c $ ;fstream 7lin;7lin.openMQail.datMOios@@appKios@@binar3;FhileGc3{cout
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
7/32
getsthisP>des.colour3;cnchec'thisP>des.colour3;!
c$;FhileGc3
{coutdes.imar'3;
clrscr3;
cout"?0+.state3;
!c$;FhileGc3{cout
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
8/32
cout&:(").date8arrest.m>123KKthisP>&:(").date8arrest.m&:(").date8arrest.m=3 KK thisP>&:(").date8arrest.m43 KK
thisP>&:(").date8arrest.mJ3 KK thisP>&:(").date8arrest.m11333{cout
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
9/32
c$;
FhileGc3{coutthisP>&:(").date8arrest.;ifthisP>&:(").date8arrest. &:(").date8arrest.>2$$T3 3{cout
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
10/32
cout
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
11/32
putsthisP>&:(").station3;cout
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
12/32
{clrscr3;fstream 7le;7le.openMQail.datMOios@@inKios@@ateKios@@binar3;
int $;int count$Oc;int W7le.tellg3;cW/siUeofcriminal3;7le.close3;7le.openMQail.datMOios@@inKios@@binar3;forint i$;i
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
13/32
rec thisP>dchec'3;7le.openMQail.datMOios@@inKios@@binar3;ifrecG$3{locrecP13*siUeofcriminal3;7le.see'gloc3;7le.readchar*3thisOsiUeofcriminal33;thisP>output3;!
7le.close3;
!//PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPoid criminal@@remoe3{
clrscr3;char no1$%;int s;cout
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
14/32
returnch3;!//PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPoid criminal@@modif3{clrscr3;fstream 7le ;charnpdr1$%Oncrime1$%Onact1$%Onstate1$%Oncourt1$%Onstat1$%On7r1$%;char str1$%Onprd16%Ocno1$%;int chec'Oloc;criminal ;date D;cout
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
15/32
strcp&:(").7r8noOn7r3;cout
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
16/32
!elsec1;!&:(").date8arrest.dD.d;&:(").date8arrest.mD.m;&:(").date8arrest.D.;
locchec'P13*siUeofcriminal3;7le.see'ploc3;7le.Fritechar*3thisOsiUeofcriminal33;7le.close3;!
!//PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
oid criminal@@list3{ clrscr3;int Q ;fstream 7le;7le.openMQail.datMOios@@inKios@@ateKios@@binar3;int W7le.tellg3;int cW/siUeofcriminal3;7le.see'g$3;cout
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
17/32
cout
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
18/32
fori$;i
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
19/32
char*pass;cin>>pass;strcmppassOM125M3;if$3{brea';!else{cout
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
20/32
?+&?+ , &0N0-
2$
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
21/32
21
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
22/32
22
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
23/32
25
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
24/32
2=
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
25/32
26
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
26/32
24
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
27/32
2
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
28/32
2T
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
29/32
2J
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
30/32
5$
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
31/32
51
-
7/24/2019 c++ project on police stations oftware-131216072242-phpapp02.docx
32/32
S@
"omputer science Fith cLL b
Sumita -rora
(+)0)+@@ Ei'ipedia