Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
POLICE AUTOMATION SYSTEM

POLICE AUTOMATION SYSTEM

Ratings: (0)|Views: 72 |Likes:
Published by Archit Gupta
C++ Project on POLICE AUTOMATION SYSTEM
C++ Project on POLICE AUTOMATION SYSTEM

More info:

Categories:Types, School Work
Published by: Archit Gupta on Jun 08, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

06/08/2010

pdf

text

original

 
/* PROJECT ON POLICE AUTOMATION SYSTEM */
#include<iostream.h>#include<fstream.h>#include<process.h>#include<string.h>#include<stdio.h>#include<conio.h>#include<stdlib.h>#include<dos.h>#include<ctype.h>#include<string.h>#define dash "*"
char cho;class menu{ public:void main_menu();void Bail_menu();void criminal_menu();void crimes_menu();void empl_menu();void pol_menu();void box1(void);void box(void);};float check_amnt(char s[]);struct pdate{int d,m,y;};typedef struct pdate DATE;class bail{ protected:int bail_no, criminal_no;DATE bail_d;float b_amnt; public:void add_bail(int,float);//add new bailvoid del_bail(int); //delete bailvoid modi_bail(int, int,float); // modify bail informationint find_bail(int); // finding bailvoid dis_bail(void); //displaying bail register void mod_b(void);void find_b(int);1
 
};class criminal{ protected:int crno;int cell_no;int crime_no;char cri_name[30];char punish[30];DATE dor; public:void add_criminal(int,int, char[], char[],DATE d); //add newvoid del_criminal(int); //deletevoid modi_criminal(int,int,int, char[], char[]); // modify informationint find_criminal(int); // findingvoid dis_criminal(void); //displaying informationvoid mod_crimi(void);void mod_c(void);void find_c(int);};class crimes{int crime_no;char cr_type[20];char act_des[30];char punish[30];char bail_amnt; public:void add_crime(char[], char[],char[],float); //add newvoid del_crime(int); //deletevoid modi_crime(int,char[],char[],char[],float); // modify informationint find_crime(int); // findingvoid dis_crime(void);void mod_cr(void);void find_cr(int);};class employee{int emp_no;char emp_name[30], desig[30];float sal;int p_s_number; public:void add_emp(char[],char[],float,int);void del_emp(int); //deletevoid modi_emp(int ,char[],char[],float,int);void find_e(int);2
 
int find_emp(int);// findingvoid dis_emp(void);//displaying informationvoid mod_e(void);};class police_sta{int ps_number;char address[40];int tot_crim;int total_emp; public:void add_ps(char[], int, int);//add newvoid del_ps(int); //deletevoid modi_ps(int, char[], int, int); // modify informationint find_ps(int); // findingvoid dis_ps(void); //displaying informationvoid mod_ps(void);void find_p(int);};
/*******IMPLEMENTATION OF FUNCTIONS OF BAIL CLASS*****/void bail :: add_bail(int cn, float bamnt)
{int p;int r;ifstream in("bailw.dat",ios::binary);if(!in) p=50;else{in.seekg(0,ios::end);r=in.tellg();r=r-sizeof(*this);in.seekg(r);in.read((char*)this,sizeof(*this)); p=bail_no;}in.close();struct date dd;int d1,m1,y1;getdate(&dd);d1 = dd.da_day;m1 = dd.da_mon;y1 = dd.da_year;3

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->