Buku Prediksi Togel Sydney Malam ini 4d 100 perak MAGNUMTOGEL
hitter !!!!!!!!!!!!!!!!!!!!!!!!
1. 1 | H I T T E R
RMK SENIOR SECONDARY SCHOOL
THIRUVERKADU, CHENNAI-77
(Affiliated to the Central Board of Secondary Education, Delhi)
RSM Nagar, sundracholapuram Road Thiruverkadu
Chennai-600 077 Website: rmkschool.in
ROLL NO:
ALL INDIA SENIOR SCHOOL CERTIFICATE EXAMINATION
Academic year: 2019-2020
DEPARTMENT OF COMPUTER SCIENCE
2. 2 | H I T T E R
RMK SENIOR SECONDARY SCHOOL
THIRUVERKADU, CHENNAI-77
DEPARTMENT OF COMPUTER SCIENCE
This is to certify that ....................................................ofclass ...........hasperformed
................................duringtheyear 2019-2020 atthe school laboratory and that
his/her project report is certified as bonfide .His/her examination roll no
is.................
.....................................
Head of Department
Date................... Computer science
Submitted for the All-India Senior SecondarySchool Certificate Examination-
2019-2020(PracticalExamination) in ComputerScience at
RMK SENIOR SECONDARYSCHOOLOn....................................
........................................ ......................................................
Internal Examiner External Examiner
Date.............................. Date...............................................
Signatureof Principal
…….............................
3. 3 | H I T T E R
COMPUTER
SCIENCE
PROJECT
HITTER
BY: S.HITESH BORHA
4. 4 | H I T T E R
ACKNOWLEDGEMENT
I hereby acknowledge all those people, who
have helped for the successful completion
of my project to a great extend.
I would also like to convey a special thanks
to our principal Mrs.Sudhamalini and the
school management for having provided
me with complete access to all materials
and information sources available in the
laboratory.
I express my deepest gratitude to our
computer teacher smt.L.Ramadevi for her
untiring help and encouragement during
the course of the project titled
”HITTER”.
I would also like to extend my thanks to
other members of the computer
department for their co-operation.
5. 5 | H I T T E R
INDEX
S.NO TITLE PAGE NO
1 ALGORITHM
2 SOURCE CODE
3 SCREEN SHOTS
4 BIBLOGRAPHY
6. 6 | H I T T E R
ALGORITHM
CLASS NAME : HITTER
DATA MEMBERS : username,password,pasword2,age,d,firstname,
Lastname.
USER DEFINED OBJECT :h
FUNCTION NAME: getinfo()
PARAMETER PASSED: nil
RETURN TYPE: nil
To get user information
FUNCTION NAME: putdata();
PARAMETER PASSED: nil
RETURN TYPE:nil
To print user details
FUNCTION NAME: format()
PARAMETER PASSED: nil
RETURN TYPE: int
To give graphics to getinfo(),putdata().
FUNTION NAME: otp()
PARAMETER PASSED: nil
RETURN TYPE: float
To generate otp.
FUNTION NAME: renum()
PARAMETER PASSED: nil
7. 7 | H I T T E R
RETURN TYPE: char
FUNCTION NAME: modify();
PARAMETER PASSED: nil
RETURN TYPE: nil
To modify the details of user.
FUNCTION NAME: retname()
PARAMETER PASSED: nil
RETURN TYPE:char
To return the username.
FUNCTION NAME: getdata()
PARAMETER PASSED: nil
RETURN TYPE: int
To get the posts .
FUNTION NAME: display()
PARAMETER PASSED: nil
RETURN TYPE: float
To display the posts
FUNTION NAME: getname()
PARAMETER PASSED: nil
RETURN TYPE: char
8. 8 | H I T T E R
FUNCTION NAME: retpost()
PARAMETER PASSED: nil
RETURN TYPE: char
To return the post.
FUNCTION NAME: postmenu();
PARAMETER PASSED: nil
RETURN TYPE:nil
To print the menu.
FUNCTION NAME: feed()
PARAMETER PASSED: nil
RETURN TYPE: nil
To print the post.
FUNTION NAME: add()
PARAMETER PASSED: nil
RETURN TYPE:
To add the post.
FUNTION NAME: signup()
PARAMETER PASSED: nil
RETURN TYPE: nil
9. 9 | H I T T E R
FUNCTION NAME: signin()
PARAMETER PASSED: nil
RETURN TYPE: nil
To log in into the hitter.
FUNCTION NAME: postmenu();
PARAMETER PASSED: nil
RETURN TYPE:nil
To print use details
FUNCTION NAME: delete1()
PARAMETER PASSED: nil
RETURN TYPE: nil
To delete a post.
FUNTION NAME: searchhitt()
PARAMETER PASSED: nil
RETURN TYPE: nil
To search a post.
FUNTION NAME: searchmode ()
PARAMETER PASSED: nil
RETURN TYPE: nil
10. 10 | H I T T E R
FUNCTION NAME: modifyuser()
PARAMETER PASSED: nil
RETURN TYPE: nil
To modify data of user.
FUNCTION NAME: menu2()
PARAMETER PASSED: nil
RETURN TYPE:nil
To print details
FUNCTION NAME: account()
PARAMETER PASSED: nil
RETURN TYPE: nil
To print details
FUNTION NAME: menu()
PARAMETER PASSED: nil
RETURN TYPE: nil
To print the details
FUNTION NAME: main()
PARAMETER PASSED: nil
RETURN TYPE: char
12. 12 | H I T T E R
//*************************************************************************
// HEADER FILES USED IN PROJECT
//*************************************************************************
#include<fstream.h>
#include<conio.h>
#include<stdio.h>
#include<dos.h>
#include<string.h>
#include<process.h>
#include<graphics.h>
#include<stdlib.h>
//*************************************************************************
// CLASS USED IN PROJECT
//*************************************************************************
class hitter
{
char username[100];
char password[100];
char pasword2[100];
int age,d;
char firstname[100];
char lastname [100];
public:
13. 13 | H I T T E R
void getinfo();
void putdata();
void format()
{
int gdrive=DETECT,gmode;
initgraph(&gdrive,&gmode,"c:TURBOC3BGI");
rectangle(250,30,387,48);
rectangle(275,143,398,160);
rectangle(275,175,398,192);
rectangle(275,207,398,224);
rectangle(275,239,398,256);
rectangle(275,271,398,288);
rectangle(275,303,398,320);
}
//-------------------------------------------------------------------------------------
void otp()
{
randomize();
d=random(10000-1000)+1;
cout<<d;
}
int renum()
{
return d;
}
void modify();
char*retname()
{
return username;
}
}h;
//*****************************************************************
14. 14 | H I T T E R
class post
{
char ch[100];
char name[100];
public:
void getdata()
{
cout<<"nWHATS ON YOURMIND : ";
gets(ch);
strcpy(name,h.retname());
}
void display()
{
cout<<name<<"-->"<<ch<<"n";
}
char * getname(){return name;}
char*retpost()
{
return ch;}}p;
//*************************************************************************
// TO DISPLAYTHEPOSTFROMTHEFILE
//*************************************************************************
void postmenu();
void feed()
{
clrscr();
15. 15 | H I T T E R
ifstreamfin("feeds4.dat",ios::binary|ios::in);
while(fin.read((char*)&p,sizeof(p)))
{
p.display();
delay(1000);
}
fin.close();
postmenu();
}
//*************************************************************************
// TO ADD POST
//*************************************************************************
void add()
{
char ch='y';
clrscr();
ofstreamfout("feeds4.dat",ios::app|ios::binary);
while(ch=='y'||ch=='Y')
{
p.getdata();
fout.write((char*)&p,sizeof(p));
cout<<"n DO YOU WANT TO ADD MORE.........";
cin>>ch;
}
fout.close();
postmenu();
}
//------------------------------------------------------------
//------------------------------------------------------------
void hitter::modify()
{
char fnm[100]=" ",lnm[100]=" ",unm[100]=" ";
int anm;
clrscr();
16. 16 | H I T T E R
cout<<"NEW FIRSTNAME:(ENTER'.'to retain old one)";
gets(fnm);
cout<<"NEW LASTNAME:(ENTER '.'to retain old one)";
gets(fnm);
cout<<"NEW AGE:(ENTER '1'to retain old one)";
cin>>anm;
cout<<"NEW USERNAME:(ENTER '*'to retain old one)";
gets(unm);
if(strcmp(fnm,".")!=0)
strcpy(firstname,fnm);
if(strcmp(lnm,".")!=0)
strcpy(firstname,unm);
if(anm!=1)
age=anm;
if(strcmp(unm,"*")!=0)
strcpy(username,unm);
}
//------------------------------------------------------------
//------------------------------------------------------------
void hitter:: putdata()
{
clrscr();
format();
gotoxy(34,3);
cout<<"HITTERregister";
gotoxy(16,10);
cout<<"Enter firstname:";
gotoxy(51,10);
cout<<"(Press enter after entering)";
gotoxy(16,12);
17. 17 | H I T T E R
cout<<"Enter last name:";
gotoxy(51,12);
cout<<"(Press enter after entering)";
gotoxy(51,14);
cout<<"(Press enter after entering)";
gotoxy(16,14);
cout<<"Enter age:";
gotoxy(51,16);
cout<<"(Press enter after entering)";
gotoxy(16,16);
cout<<"Enter Username:";
gotoxy(36,10);
puts( firstname);
gotoxy(36,12);
puts( lastname);
gotoxy(36,14);
cout<<age;
gotoxy(36,16);
puts(username);
}
void hitter:: getinfo()
{
re:
format();
18. 18 | H I T T E R
gotoxy(34,3);
cout<<"HITTERregister";
gotoxy(16,10);
cout<<"Enter firstname:";
gotoxy(51,10);
cout<<"(Press enter after entering)";
gotoxy(16,12);
cout<<"Enter last name:";
gotoxy(51,12);
cout<<"(Press enter after entering)";
gotoxy(51,14);
cout<<"(Press enter after entering)";
gotoxy(16,14);
cout<<"Enter age:";
gotoxy(51,16);
cout<<"(Press enter after entering)";
gotoxy(16,16);
cout<<"Enter Username:";
gotoxy(51,18);
cout<<"(8 characters only)";
gotoxy(16,18);
cout<<"Enter password:";
gotoxy(51,20);
cout<<"(8 characters only)";
19. 19 | H I T T E R
gotoxy(10,20);
cout<<"Enter confirmpassword:";
gotoxy(36,10);
gets( firstname);
gotoxy(36,12);
gets( lastname);
gotoxy(36,14);
cin>>age;
gotoxy(36,16);
gets(username);
gotoxy(36,18);
for(inti=0;i<8;++i)
{
password[i]=getch();
cout<<"*";
}
gotoxy(36,20);
for(i=0;i<8;++i)
{
pasword2[i]=getch();
cout<<"*";
}
gotoxy(46,24);
cout<<"Redirecting";
for(intj=0;j<4;++j)
{
sleep(1);
cout<<".";
}
if (strcmp(password,pasword2)!=0)
{
cout<<"INVALIDPASSWORD!!";
20. 20 | H I T T E R
delay(1000);
clrscr();
goto re;
}
else
{
cout<<"nSUCCESSFULLYREGISTERED";
delay(2000);
}
}
//*************************************************************************
// FUNCTION TO REGISTER
//*************************************************************************
void signin();
void signup()
{
h.otp();
int n=h.renum();
ofstream fout("sisu2.dat",ios::app|ios::binary);
h.getinfo();
cout<<"n LOGINID IS --->"<<n;
fout.write((char*)&h,sizeof(h));
fout.close();
getch();
clrscr();
closegraph();
signin();
}
//*************************************************************************
// FUNCTION TO LOGIN
//*************************************************************************
void postmenu();
21. 21 | H I T T E R
void logo()
{
int gdrive=DETECT,gmode;
initgraph(&gdrive,&gmode,"c:TURBOC3BGI");
rectangle(275,175,398,192);
}
void menu2();
void signin()
{
clrscr();
int a;
long c;
logo();
gotoxy(34,3);
cout<<"HITTERLogin";
ifstreamfin("sisu2.dat",ios::in);
gotoxy(25,10);
cout<<"Enter your login ID:";
gotoxy(51,10);
cout<<"(Press enter after entering)";
gotoxy(36,12);
cin>>c;
getch();
gotoxy(20,20);
cout<<"Please wait Redirecting";
for(intj=0;j<4;++j)
{
sleep(1);
cout<<".";
}
while(!fin.eof())
{
fin.read((char*)&h,sizeof(h));
22. 22 | H I T T E R
if(h.renum()==c)
{
cout<<"n Access Granted";
delay(2000);
closegraph();
clrscr();
menu2();
}
}
}
//*************************************************************************
// MENUDRIVEN FUNCTION FOR POST
//*************************************************************************
void postmenu()
{
clrscr();
int a;
cout<<"n Select the option you need : ";
cout<<"n1.Feed n2.Add Postn3.back";
cin>>a;
if(a==1)
{
feed();
}
else
if(a==2)
{
add();
}
23. 23 | H I T T E R
else
if(a==3)
{
menu2();
}
}
//*************************************************************************
// FUNCTION TO DELETE
//*************************************************************************
void searchhitt();
void delete1()
{
clrscr();
int i;
char pd[100];
char s[100];
gotoxy(34,3);
cout<<"HITTERdelete";
ofstreamfout("temp2.dat",ios::binary|ios::out);
ifstreamfin("feeds2.dat",ios::binary|ios::in);
while(fin.read((char*)&p,sizeof(p)))
{ p.display();getch();
}
fin.close();
fin.open("feeds2.dat",ios::in|ios::binary);
cout<<"n enter the post you wantto delete";
gets(pd);
while(fin.read((char*)&p,sizeof(p)))
{
if(strcmpi(p.retpost(),pd)==0)
{
24. 24 | H I T T E R
cout<<"n post deleted..";
}
else
{
fout.write((char*)&p,sizeof(p));
}
}
closegraph();
fin.close();fout.close();
remove("feeds2.dat");
rename("temp2.dat","feeds2.dat");
menu2();}
//*************************************************************************
// FUNCTION TO SEARCH
//*************************************************************************
void searchhitt()
{ clrscr();
int sh;
char su[100];
logo();
gotoxy(34,3);
cout<<"HITTERsearch";
//ifstream fin("sisu2.dat",ios::in|ios::binary);
ifstreamfout("feeds2.dat",ios::binary|ios::in);
gotoxy(25,10);
cout<<"Enter a usernameyou wantto search for:";
gotoxy(51,10);
cout<<"(Press enter after entering)";
gotoxy(36,12);
gets(su);
gotoxy(20,20);
cout<<"Please wait Redirecting";
for(intj=0;j<4;++j)
25. 25 | H I T T E R
{
sleep(1);
cout<<".";
}
while(fout.read((char*)&p,sizeof(p)))
{
if(strcmpi(p.getname(),su)==0)
{
closegraph();
p.display();
getch();
}
}
//fin.close();
fout.close();
menu2();
}
void searchmode()
{
clrscr();
int s;
cout<<"n Select the option you need : ";
cout<<"n1.SEARCH HITTS n2.GO BACK";
cin>>s;
if(s==1)
{
searchhitt();
}
else
if(s==2)
{
menu2()
}
}
26. 26 | H I T T E R
//*************************************************************************
// FUNCTION TO MODIFY
//*************************************************************************
void modifyuser()
{
char mno[30],nu[100]; int found=0;
fstream fio("sisu2.dat",ios::out|ios::binary|ios::in);
cout<<"n Enter the user name you want to modify::";
gets(mno);
while(!fio.eof())
{
long pos=fio.tellg();
fio.read((char*)&h,sizeof(h));
if(strcmpi(h.retname(),mno)==0)
{
h.modify();
fio.seekg(pos);
fio.write((char *)&h,sizeof(h));
cout<<"n Record Modified!";
found=1;
}
}
if(found==0)
cout<<"n Record not found::";
fio.close();
closegraph();
getch();
menu2();
}
27. 27 | H I T T E R
//*************************************************************************
// FUNCTION FOR MENU
//*************************************************************************
void account();
void menu2()
{
clrscr();
int e;
cout<<"n Select the option you need : ";
cout<<"n1.SEARCH MODE n2.DELETEMODEn3.ADD
MODEn4.SETTINGSn5.SIGNOUT";
cin>>e;
switch(e)
{
case 1:
searchmode();
break;
case 2:
delete1();
break;
case 3:
postmenu();
break;
case 5:
account();
break;
28. 28 | H I T T E R
case 4:
modifyuser();
break;
}
}
//*************************************************************************
// MENU FOR SIGNIN AND SIGOUT
//*************************************************************************
void account()
{
clrscr();
int a;
cout<<"ENTER ONEBELOW";
cout<<"n1.SIGNINn2.SIGNUPn3.EXIT>>";
cin>>a;
if(a==1)
{
signin();
}
else
if(a==2)
{
signup();
}
else
if(a==3)
{
exit(0);
}}
//*************************************************************************
29. 29 | H I T T E R
// MENU FOR INTRO
//*************************************************************************
void menu()
{
clrscr();
int a,g,f;
hi:
cout<<"nWELCOMETO HITTER";
cout<<"nSELECT AN OPTIONTO CONTINUE";
cout<<"n1.ACCOUNTn2.EXITn>>";
cin>>a;
if(a==1)
{
account();
}
if(a==2)
{
clrscr();
cout<<"HAVEA NICEDAY!!!";
exit(0);
}
clrscr();
goto hi;}
//*************************************************************************
// MAIN
//*************************************************************************
void main()
{
clrscr();
menu();
getch();
}