SlideShare a Scribd company logo
SUBMITED BY
Bhanu Pratap Singh Shekhawat
Bachelor of Computer Application II YEAR
Dezyne E’cole College
www.dezyneecole.com
INFORMATION TECHNOLOGY
PROJECT REPORT
C++ PROGRAMMING
E-Mail Validator
TOPIC
C++
Project Report
On
C++ Programming
At
Dezyne E’cole College
Ajmer
Submitted to
Dezyne E’cole College
Towards the
Partial Fulfillment on
Bachelor of Computer Application
By
Bhanu Pratap Singh Shekhawat
Dezyne E’cole College
106/10 Civil Line, Ajmer
Tel – 0145-2624679
Www.dezyneecole.com
2016
Acknowledgement
I Bhanu Pratap Singh Shekhawat, Student On Dezyne E’cole College,
An Extremely Grateful To Each And Every Individual. Who Has
Contributed. In Successful Completion Of My Project. I Express My
Gratitude Towards Dezyne E’cole College For Their. Guidance and
Contrast Supervision As Well As For Providing The Necessary
Information And Support Regarding The Completion Of Project
Thank You
1 | P a g e
Synopsis
This Project Is A Minor. Project Made, Based On The Practical Concept
Of C++ This Project Has Made Our Basic Practical Concepts On C++
Strong
2 | P a g e
3 | P a g e
4 | P a g e
5 | P a g e
#include<iostream.h>
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
#include<dos.h>
#include<fstream.h>
class save
{
public:
char id[60];
char password[60];
char fn[60];
char ln[40];
char ci[40];
char st[40];
char cou[40];
char date[12];
};
save a;
fstream f;
fstream c;
void main()
{
6 | P a g e
class m1
{
public:
/*Make background black*/
void white()
{
textbackground(BLACK);
for(int i=0;i<2000;i++)
{
cprintf(" ");
}
}
/*Make main screen option*/
void mains()
{
white();
textbackground(6);
for(int i=30;i<53;i++)
{
for(int j=5;j<19;j++)
{
gotoxy(i,j);
cprintf(" ");
}
}
7 | P a g e
textcolor(0);
for(i=30;i<53;i++)
{
gotoxy(i,17);
cprintf("_");
}
for(i=30;i<53;i++)
{
gotoxy(i,6);
cprintf("-");
}
gotoxy(33,5);
cprintf("E-mail validatior");
gotoxy(35,18);
cprintf("Choose option");
textcolor(7);
gotoxy(32,8);
cprintf("1. Login");
gotoxy(32,10);
cprintf("2. Sign up");
gotoxy(32,12);
cprintf("3. Forgot password");
gotoxy(32,14);
cprintf("4. Exit");
}
/*Sign up account*/
void signinopp()
8 | P a g e
{
white();
textbackground(6);
for(int i=15;i<68;i++)
{
for(int j=6;j<18;j++)
{
gotoxy(i,j);
cprintf(" ");
}
}
textcolor(0);
for(i=25;i<54;i++)
{
gotoxy(i,7);
cprintf("_");
}
gotoxy(62,17);
cprintf("N");
gotoxy(56,17);
cprintf("B");
textcolor(7);
gotoxy(63,17);
cprintf("ext");
gotoxy(57,17);
cprintf("ack");
gotoxy(32,6);
9 | P a g e
cprintf("Sign up account");
gotoxy(17,9);
cprintf("First name ");
gotoxy(29,9); //for name
gets(a.fn);
gotoxy(18,10);
cprintf("Last name ");
gotoxy(29,10); //last name
gets(a.ln);
gotoxy(23,11);
cprintf("City ");
gotoxy(29,11); //city
gets(a.ci);
gotoxy(22,12);
cprintf("State");
gotoxy(29,12); //state
gets(a.st);
gotoxy(20,13);
cprintf("Country");
gotoxy(29,13); //country
gets(a.cou);
gotoxy(24,14);
cprintf("DOB ");
gotoxy(29,14); //date
gets(a.date);
gotoxy(62,17);
}
10 | P a g e
/*Sign up next option*/
void signinnext()
{
l2:
l1:
white();
textbackground(6);
for(int i=25;i<55;i++)
{
for(int j=8;j<16;j++)
{
gotoxy(i,j);
cprintf(" ");
}
}
textcolor(0);
textbackground(6);
gotoxy(48,15);
cprintf("S");
gotoxy(40,15);
cprintf("C");
gotoxy(37,8);
cprintf("Sign up");
textcolor(7);
gotoxy(49,15);
cprintf("ubmit");
gotoxy(41,15);
11 | P a g e
cprintf("ancel");
gotoxy(32,10);
cprintf("Id");
gotoxy(26,12);
cprintf("Password");
textcolor(0);
textbackground(WHITE);
for(i=35;i<53;i++)
{
gotoxy(i,10);
cprintf(" ");
}
for(i=35;i<53;i++)
{
gotoxy(i,12);
cprintf(" ");
}
gotoxy(35,10);
gets(a.id);
gotoxy(35,10);
cout<<a.id<<"@dec.com";
int sp,com;
sp=com=0;
for(i=0;a.id[i]!='0';i++)
{
if(a.id[i]==32)
{
12 | P a g e
sp++;
}
}
if(a.id[i-4]=='.' && a.id[i-3]=='c' && a.id[i-2]=='o' && a.id[i-1]=='m')
{
com++;
}
if(sp==0 && com==0)
{
save w;
f.open("valid.dat",ios::in);
while(f)
{
f.read((char *)&w,sizeof(w));
if(strcmp(w.id,a.id)==0)
{
textbackground(6);
gotoxy(26,14); //Id already exist
cprintf("Id is already exist");
getch();
clrscr();
goto l1;
}
}
f.close();
gotoxy(35,12); //for input password
int sic=-1;
13 | P a g e
while(a.password[sic]!=13)
{
sic++;
a.password[sic]=getch();
cout<<"*";
if(a.password[sic]==8)
{
cout<<"b bb b";
sic-=2;
}
}
a.password[sic]='0';
// gets(password);
signbuttk:
gotoxy(48,15);
char signbutt;
signbutt=getch();
if(signbutt=='s' || signbutt=='S')
{
textbackground(6);
textcolor(7);
gotoxy(26,14);
cout<<" Account create sucessfully ";
delay(2000);
goto acs;
}
else if(signbutt=='C' || signbutt=='c')
14 | P a g e
{
main();
}
else
{
goto signbuttk;
}
}
else
{
gotoxy(26,14); //wrong input
cprintf("Wrong input");
getch();
clrscr();
goto l2;
}
acs:
}
/*Use store sign up data*/
void datain()
{
f.open("valid.dat",ios::app | ios::out);
f.write((char *)&a,sizeof(a));
f.close();
}
/*Log in page*/
void loginid()
15 | P a g e
{
ll:
white();
textbackground(6);
for(int i=25;i<55;i++)
{
for(int j=8;j<15;j++)
{
gotoxy(i,j);
cprintf(" ");
}
}
textcolor(0);
gotoxy(49,14);
cprintf("L");
gotoxy(41,14);
cprintf("C");
gotoxy(37,8);
cprintf("Login");
textbackground(WHITE);
for(i=35;i<53;i++)
{
gotoxy(i,10);
cprintf(" ");
}
for(i=35;i<53;i++)
{
16 | P a g e
gotoxy(i,12);
cprintf(" ");
}
textcolor(7);
textbackground(6);
gotoxy(50,14);
cprintf("ogin");
gotoxy(42,14);
cprintf("ancel");
gotoxy(32,10);
cprintf("Id");
gotoxy(26,12);
cprintf("Password");
int sp,com;
sp=com=0;
gotoxy(35,10); // for input id
gets(a.id);
gotoxy(35,10);
cout<<a.id<<"@dec.com";
for(i=0;a.id[i]!='0';i++)
{
if(a.id[i]==32)
{
sp++;
}
}
if(a.id[i-4]=='.' && a.id[i-3]=='c' && a.id[i-2]=='o' && a.id[i-1]=='m')
17 | P a g e
{
com++;
}
if(sp==0 && com==0)
{
gotoxy(35,12); //for input password
int sic=-1;
while(a.password[sic]!=13)
{
sic++;
a.password[sic]=getch();
cout<<"*";
if(a.password[sic]==8)
{
cout<<"b bb b";
sic-=2;
}
}
a.password[sic]='0';
// gets(password);
logpressopp:
gotoxy(51,14);
char logpress;
logpress=getch();
if(logpress=='l' || logpress=='L')
{
goto ln;
18 | P a g e
}
else if(logpress=='C' || logpress=='c')
{
main();
}
else
{
goto logpressopp;
}
}
else
{
gotoxy(28,14); //wrong input
cprintf("Wrong input");
getch();
clrscr();
goto ll;
}
ln:
}
/*data out of id*/
void dout()
{
loginid();
save w;
int da=0;
f.open("valid.dat",ios::in);
19 | P a g e
while(f)
{
f.read((char *)&w,sizeof(w));
if(strcmp(a.id,w.id)==0 &&
strcmp(a.password,w.password)==0)
{
strcpy(a.fn,w.fn);
strcpy(a.ln,w.ln);
strcpy(a.ci,w.ci);
strcpy(a.st,w.st);
strcpy(a.cou,w.cou);
strcpy(a.date,w.date);
da++;
break;
}
else if(f==0)
{
break;
}
else
{
continue;
}
}
f.close();
if(da==0)
{
gotoxy(26,14); //Id not available
20 | P a g e
cprintf("Access denied");
delay(2100);
main();
}
}
void loginopp()
{
white();
textbackground(6);
for(int i=26;i<57;i++)
{
for(int j=7;j<22;j++)
{
gotoxy(i,j);
cprintf(" ");
}
}
textcolor(BLACK);
for(i=26;i<57;i++)
{
gotoxy(i,6);
cprintf("-");
}
for(i=26;i<57;i++)
{
gotoxy(i,9);
cprintf("-");
21 | P a g e
}
gotoxy(31,20);
cprintf("Choose your operation");
gotoxy(27,7);
cprintf("Welcome ");
cout<<a.fn;
gotoxy(35,8);
cout<<a.ln;
textcolor(7);
gotoxy(32,10);
cprintf("1. View");
gotoxy(32,12);
cprintf("2. Modify detail");
gotoxy(32,14);
cprintf("3. Change password");
gotoxy(32,16);
cprintf("4. Log out");
}
void view()
{
white();
textbackground(6);
for(int i=15;i<68;i++)
{
for(int j=6;j<21;j++)
{
gotoxy(i,j);
22 | P a g e
cprintf(" ");
}
}
textcolor(0);
gotoxy(61,19);
cprintf("B");
for(i=15;i<68;i++)
{
gotoxy(i,6);
cprintf("-");
}
for(i=15;i<68;i++)
{
gotoxy(i,8);
cprintf("-");
}
textcolor(WHITE);
gotoxy(62,19);
cprintf("ACK");
gotoxy(27,7);
cprintf(" ");
gotoxy(17,9);
cprintf("You are Miss/Mr ");
gotoxy(22,11);
cprintf("in: ");
gotoxy(19,13);
cprintf("State: ");
23 | P a g e
gotoxy(17,15);
cprintf("Country: ");
gotoxy(21,17);
cprintf("DOB: ");
gotoxy(32,7); //for id
cout<<a.id<<"@dec.com";
gotoxy(33,9); //for name
cout<<a.fn<<" "<<a.ln;
gotoxy(26,11); //city
cout<<a.ci;
gotoxy(26,13); //state
cout<<a.st;
gotoxy(26,15); //country
cout<<a.cou;
gotoxy(26,17); //date
int il=0;
while(a.date[il]!='0')
{
cout<<a.date[il];
il++;
}
}
/*Change password*/
void changepass()
{
bop:
nm:
24 | P a g e
white();
textbackground(6);
for(int i=21;i<61;i++)
{
for(int j=8;j<18;j++)
{
gotoxy(i,j);
cprintf(" ");
}
}
textcolor(0);
for(i=21;i<61;i++)
{
gotoxy(i,16);
cprintf("-");
}
gotoxy(55,17);
cprintf("S");
gotoxy(47,17);
cprintf("C");
gotoxy(34,8);
cprintf("Change password ");
textcolor(WHITE);
gotoxy(56,17);
cprintf("ave");
gotoxy(48,17);
cprintf("ancel");
25 | P a g e
char passn[20],passo[20],passc[20];
int ck=0;
gotoxy(24,10);
cprintf("Old password : ");
gotoxy(39,10); //old password
int sic=-1;
while(passo[sic]!=13)
{
sic++;
passo[sic]=getch();
cout<<"*";
if(passo[sic]==8)
{
cout<<"b bb b";
sic-=2;
}
}
passo[sic]='0';
// gets(passo);
if(strcmp(a.password,passo)==0)
{
gotoxy(24,12);
cprintf("New password : ");
gotoxy(39,12); //new password
sic=-1;
while(passn[sic]!=13)
{
26 | P a g e
sic++;
passn[sic]=getch();
cout<<"*";
if(passn[sic]==8)
{
cout<<"b bb b";
sic-=2;
}
}
passn[sic]='0';
// gets(passn);
gotoxy(24,14);
cprintf("Confirm password : ");
gotoxy(43,14); //confirm password
int sic=-1;
while(passc[sic]!=13)
{
sic++;
passc[sic]=getch();
cout<<"*";
if(passc[sic]==8)
{
cout<<"b bb b";
sic-=2;
}
}
passc[sic]='0';
27 | P a g e
// gets(passc);
if(strcmp(passn,passc)==0)
{
back:
char oppnext;
gotoxy(47,17);
oppnext=getch();
if(oppnext=='S' || oppnext=='s')
{
save w;
f.open("valid.dat",ios::in);
while(f)
{
f.read((char *) &w,sizeof(w));
if(strcmp(a.id,w.id)==0 &&
strcmp(a.password,w.password)==0)
{
strcpy(w.password,passn);
c.open("valid1.dat",ios::app | ios::in);
c.write((char *)&w,sizeof(w));
c.close();
ck++;
}
else if(f==0)
{
break;
}
28 | P a g e
else
{
// c.write((char *) &w,sizeof(w));
c.open("valid1.dat",ios::app | ios::in);
c.write((char *)&w,sizeof(w));
c.close();
}
}
f.close();
remove("valid.dat");
rename("valid1.dat","valid.dat");
strcpy(a.password,passn);
}
else if(oppnext=='c' || oppnext=='C')
{
goto cp;
}
else
{
goto back;
}
}
else
{
gotoxy(25,17); //does not match
cprintf("Password does not match");
delay(2000);
29 | P a g e
clrscr();
goto nm;
}
}
else
{
gotoxy(25,17); // wrong input
cprintf("Wrong input");
delay(700);
clrscr();
goto bop;
}
if(ck>=1)
{
gotoxy(22,17); //password change sucessfully
cprintf("Password change sucessfull");
delay(1000);
}
else
{
gotoxy(22,17); //password not change sucessfully
cprintf("Password not changed");
delay(1000);
}
cp:
}
/*Modify detail*/
30 | P a g e
void modify()
{
white();
textbackground(6);
for(int i=27;i<57;i++)
{
for(int j=6;j<20;j++)
{
gotoxy(i,j);
cprintf(" ");
}
}
textcolor(0);
for(i=27;i<57;i++)
{
gotoxy(i,7);
cprintf("-");
}
for(i=27;i<57;i++)
{
gotoxy(i,18);
cprintf("-");
}
gotoxy(36,19);
cprintf("Choose option");
gotoxy(38,6);
cprintf("Modify");
31 | P a g e
textcolor(7);
gotoxy(29,8);
cprintf("1. Change First name");
gotoxy(29,10);
cprintf("2. Change City");
gotoxy(29,12);
cprintf("3. Change State");
gotoxy(29,14);
cprintf("4. Change Country");
gotoxy(29,16);
cprintf("5. Back");
}
/*Change first name*/
void changefn()
{
bop:
white();
textbackground(6);
for(int i=21;i<61;i++)
{
for(int j=8;j<18;j++)
{
gotoxy(i,j);
cprintf(" ");
}
}
textcolor(0);
32 | P a g e
for(i=21;i<61;i++)
{
gotoxy(i,16);
cprintf("-");
}
gotoxy(55,17);
cprintf("S");
gotoxy(47,17);
cprintf("C");
gotoxy(31,8);
cprintf("Change first name ");
textcolor(WHITE);
gotoxy(56,17);
cprintf("ave");
gotoxy(48,17);
cprintf("ancel");
char fnn[40],fno[40];
int ck=0;
gotoxy(24,10);
cprintf("Old name : ");
gotoxy(35,10); //old name
gets(fno);
if(strcmp(a.fn,fno)==0)
{
gotoxy(24,12);
cprintf("New name : ");
gotoxy(35,12); //new name
33 | P a g e
gets(fnn);
back:
gotoxy(48,17);
char oppnext;
oppnext=getch();
if(oppnext=='S' || oppnext=='s')
{
save w;
f.open("valid.dat",ios::in);
// c.open("valid1.txt",ios::app);
while(f)
{
f.read((char *) &w,sizeof(w));
if(strcmp(a.id,w.id)==0 &&
strcmp(a.password,w.password)==0 && strcmp(w.fn,a.fn)==0)
{
strcpy(w.fn,fnn);
// c.write((char *) &w,sizeof(w));
c.open("valid1.dat",ios::app | ios::out);
c.write((char *)&w,sizeof(w));
c.close();
ck++;
}
else if(f==0)
{
break;
}
34 | P a g e
else
{
// c.write((char *) &w,sizeof(w));
c.open("valid1.dat",ios::app | ios::out);
c.write((char *)&w,sizeof(w));
c.close();
}
}
f.close();
remove("valid.dat");
rename("valid1.dat","valid.dat");
strcpy(a.fn,fnn);
}
else if(oppnext=='C' || oppnext=='c')
{
goto cfn;
}
else
{
goto back;
}
}
else
{
gotoxy(25,17); // wrong input
cprintf("Wrong input");
delay(1300);
35 | P a g e
clrscr();
goto bop;
}
if(ck>=1)
{
gotoxy(22,17); //name change sucessfully
cprintf("Name change sucessfully");
delay(1400);
}
else
{
gotoxy(22,17); //name not change sucessfully
cprintf("Name not change");
delay(2000);
}
cfn:
}
/*Change city*/
void changeci()
{
bop:
white();
textbackground(6);
for(int i=21;i<61;i++)
{
for(int j=8;j<18;j++)
{
36 | P a g e
gotoxy(i,j);
cprintf(" ");
}
}
textcolor(0);
for(i=21;i<61;i++)
{
gotoxy(i,16);
cprintf("-");
}
gotoxy(55,17);
cprintf("S");
gotoxy(47,17);
cprintf("C");
gotoxy(35,8);
cprintf("Change City ");
textcolor(WHITE);
gotoxy(56,17);
cprintf("ave");
gotoxy(48,17);
cprintf("ancel");
char cin[40],cio[40];
int ck=0;
gotoxy(24,10);
cprintf("Old city : ");
gotoxy(35,10); //old name
gets(cio);
37 | P a g e
if(strcmp(a.ci,cio)==0)
{
gotoxy(24,12);
cprintf("New city : ");
gotoxy(35,12); //new city
gets(cin);
back:
gotoxy(48,17);
char oppnext;
oppnext=getch();
if(oppnext=='S' || oppnext=='s')
{
save w;
f.open("valid.dat",ios::in);
// c.open("valid1.txt",ios::app);
while(f)
{
f.read((char *) &w,sizeof(w));
if(strcmp(a.id,w.id)==0 &&
strcmp(a.password,w.password)==0 && strcmp(w.ci,a.ci)==0)
{
strcpy(w.ci,cin);
// c.write((char *) &w,sizeof(w));
c.open("valid1.dat",ios::app | ios::out);
c.write((char *)&w,sizeof(w));
c.close();
ck++;
}
38 | P a g e
else if(f==0)
{
break;
}
else
{
c.open("valid1.dat",ios::app | ios::out);
c.write((char *)&w,sizeof(w));
c.close();
}
}
f.close();
remove("valid.dat");
rename("valid1.dat","valid.dat");
strcpy(a.ci,cin);
}
else if(oppnext=='C' || oppnext=='c')
{
goto oppc;
}
else
{
goto back;
}
}
else
{
39 | P a g e
gotoxy(25,17); // wrong input
cprintf("Wrong input");
delay(1500);
clrscr();
goto bop;
}
if(ck>=1)
{
gotoxy(22,17); //city change sucessfully
cprintf("City change sucessfull");
delay(1000);
}
else
{
gotoxy(22,17); //city not change sucessfully
cprintf("City not change");
delay(2000);
}
oppc:
}
/*Change state*/
void changest()
{
bop:
white();
textbackground(6);
for(int i=21;i<61;i++)
40 | P a g e
{
for(int j=8;j<18;j++)
{
gotoxy(i,j);
cprintf(" ");
}
}
textcolor(0);
for(i=21;i<61;i++)
{
gotoxy(i,16);
cprintf("-");
}
gotoxy(55,17);
cprintf("S");
gotoxy(47,17);
cprintf("C");
gotoxy(35,8);
cprintf("Change State ");
textcolor(WHITE);
gotoxy(56,17);
cprintf("ave");
gotoxy(48,17);
cprintf("ancel");
char stn[40],sto[40];
int ck=0;
gotoxy(24,10);
41 | P a g e
cprintf("Old State : ");
gotoxy(36,10); //old name
gets(sto);
if(strcmp(a.st,sto)==0)
{
gotoxy(24,12);
cprintf("New state : ");
gotoxy(36,12); //new state
gets(stn);
back:
gotoxy(47,17);
char oppnext;
oppnext=getch();
if(oppnext=='S' || oppnext=='s')
{
save w;
f.open("valid.dat",ios::in);
// c.open("valid1.txt",ios::app);
while(f)
{
f.read((char *) &w,sizeof(w));
if(strcmp(a.id,w.id)==0 &&
strcmp(a.password,w.password)==0 && strcmp(w.st,a.st)==0)
{
strcpy(w.st,stn);
// c.write((char *) &w,sizeof(w));
c.open("valid1.dat",ios::app | ios::out);
c.write((char *)&w,sizeof(w));
42 | P a g e
c.close();
ck++;
}
else if(f==0)
{
break;
}
else
{
c.open("valid1.dat",ios::app | ios::out);
c.write((char *)&w,sizeof(w));
c.close();
}
}
f.close();
remove("valid.dat");
rename("valid1.dat","valid.dat");
strcpy(a.st,stn);
}
else if(oppnext=='C' || oppnext=='c')
{
goto opc;
}
else
{
goto back;
}
43 | P a g e
}
else
{
gotoxy(25,17); // wrong input
cprintf("Wrong input");
delay(1500);
clrscr();
goto bop;
}
if(ck>=1)
{
gotoxy(22,17); //state change sucessfully
cprintf("State change sucessfull");
delay(1000);
}
else
{
gotoxy(22,17); //state not change sucessfully
cprintf("State not change");
delay(2000);
}
opc:
}
/*Change country*/
void changecou()
{
bop:
44 | P a g e
white();
textbackground(6);
for(int i=21;i<61;i++)
{
for(int j=8;j<18;j++)
{
gotoxy(i,j);
cprintf(" ");
}
}
textcolor(0);
for(i=21;i<61;i++)
{
gotoxy(i,16);
cprintf("-");
}
gotoxy(55,17);
cprintf("S");
gotoxy(47,17);
cprintf("C");
gotoxy(35,8);
cprintf("Change Country ");
textcolor(WHITE);
gotoxy(56,17);
cprintf("ave");
gotoxy(48,17);
cprintf("ancel");
45 | P a g e
char coun[40],couo[40];
int ck=0;
gotoxy(24,10);
cprintf("Old Country : ");
gotoxy(38,10); //old name
gets(couo);
if(strcmp(a.cou,couo)==0)
{
gotoxy(24,12);
cprintf("New country : ");
gotoxy(38,12); //new country
gets(coun);
back:
gotoxy(48,17);
char oppnext;
oppnext=getch();
if(oppnext=='S' || oppnext=='s')
{
save w;
f.open("valid.dat",ios::in);
// c.open("valid1.txt",ios::app);
while(f)
{
f.read((char *) &w,sizeof(w));
if(strcmp(a.id,w.id)==0 &&
strcmp(a.password,w.password)==0 && strcmp(w.cou,a.cou)==0)
{
strcpy(w.cou,coun);
46 | P a g e
// c.write((char *) &w,sizeof(w));
c.open("valid1.dat",ios::app | ios::out);
c.write((char *)&w,sizeof(w));
c.close();
ck++;
}
else if(f==0)
{
break;
}
else
{
c.open("valid1.dat",ios::app | ios::out);
c.write((char *)&w,sizeof(w));
c.close();
}
}
f.close();
remove("valid.dat");
rename("valid1.dat","valid.dat");
strcpy(a.cou,coun);
}
else if(oppnext=='c' || oppnext=='C')
{
goto opc;
}
else
47 | P a g e
{
goto back;
}
}
else
{
gotoxy(25,17); // wrong input
cprintf("Wrong input");
delay(1500);
clrscr();
goto bop;
}
if(ck>=1)
{
gotoxy(22,17); //country change sucessfully
cprintf("Country change sucessfull");
delay(1400);
}
else
{
gotoxy(25,17); //country not change sucessfully
cprintf("Country not change");
delay(2000);
}
opc:
}
/*Forgot password*/
48 | P a g e
void forgot()
{
white();
textbackground(6);
for(int i=25;i<55;i++)
{
for(int j=8;j<15;j++)
{
gotoxy(i,j);
cprintf(" ");
}
}
textcolor(0);
gotoxy(33,8);
cprintf("Forgot password");
textcolor(7);
textbackground(6);
gotoxy(32,10);
cprintf("Id:");
gotoxy(35,10); // for input id
cin>>a.id;
int c=0;
save w;
ifstream f;
f.open("valid.dat",ios::in);
while(f)
{
49 | P a g e
f.read((char *)&w,sizeof(w));
if(strcmp(a.id,w.id)==0)
{
strcpy(a.password,w.password);
c++;
break;
}
else if(f==0)
{
break;
}
else
{
continue;
}
}
f.close();
if(c==1)
{
gotoxy(26,12);
cprintf("Password:"); //password
gotoxy(35,12);
cout<<a.password;
}
else
{
gotoxy(32,14); //id is not valid
50 | P a g e
cprintf("Id is not valid");
delay(1000);
main();
}
}
/*Thankyou for log in*/
void thankyou()
{
white();
int c;
char the[25]="Thankyou for login";
gotoxy(30,7);
for(int i=0;the[i]!='0';i++)
{
delay(100);
cout<<the[i];
}
c=0;
for(i=0;a.fn[i]!='0';i++)
{
c++;
}
for(i=0;a.ln[i]!='0';i++)
{
c++;
}
if(c>=26)
51 | P a g e
{
gotoxy(c/2+c/3,8);
for(i=0;a.fn[i]!='0';i++)
{
delay(100);
cout<<a.fn[i];
}
cout<<" ";
for(i=0;a.ln[i]!='0';i++)
{
delay(100);
cout<<a.ln[i];
}
}
else
{
gotoxy(28,8);
for(i=0;a.fn[i]!='0';i++)
{
delay(100);
cout<<a.fn[i];
}
cout<<" ";
for(i=0;a.ln[i]!='0';i++)
{
delay(100);
cout<<a.ln[i];
52 | P a g e
}
}
for(i=1;i<=6;i++)
{
delay(500);
if(i==4)
{
cout<<"b bb b";
}
else
{
cout<<".";
}
}
}
};
clrscr();
m1 b;
char d;
b.mains(); //main
d=getch();
if(d=='1')
{
clrscr();
53 | P a g e
b.dout();
ll:
bm:
clrscr();
cpb:
modi2:
b.loginopp();
d=getch();
if(d=='1')
{
clrscr();
b.view();
bmc:
char b;
b=getch();
if(b=='B' || b=='b')
{
goto bm;
}
else
{
goto bmc;
}
}
else if(d=='2')
{
clrscr();
54 | P a g e
cfn:
cci:
cst:
ccou:
b.modify();
modi:
char modiopp;
modiopp=getch();
if(modiopp=='1')
{
clrscr();
b.changefn();
goto cfn;
}
else if(modiopp=='2')
{
clrscr();
b.changeci();
goto cci;
}
else if(modiopp=='3')
{
clrscr();
b.changest();
goto cst;
}
else if(modiopp=='4')
55 | P a g e
{
clrscr();
b.changecou();
goto ccou;
}
else if(modiopp=='5')
{
clrscr();
goto modi2;
}
else
{
delay(800);
goto modi;
}
}
else if(d=='3')
{
clrscr();
b.changepass();
goto cpb;
}
else if(d=='4')
{
clrscr();
b.thankyou();
delay(1000);
56 | P a g e
main();
}
else
{
gotoxy(36,19);
cprintf("Wrong input"); //for wrong input
delay(700);
goto ll;
}
}
else if(d=='2')
{
clrscr();
b.signinopp();
si:
char sio;
sio=getch();
if(sio=='n' || sio=='N')
{
clrscr();
b.signinnext();
b.datain();
main();
}
else if(sio=='B' || sio=='b')
{
57 | P a g e
main();
}
else
{
goto si;
}
}
else if(d=='3')
{
clrscr();
b.forgot();
getch();
main();
}
else if(d=='4')
{
exit(0);
}
else
{
gotoxy(36,16); //wrong input
cprintf("Wrong input");
delay(1000);
main();
}
getch();
}
58 | P a g e
59 | P a g e
THANK YOU

More Related Content

Similar to Bhanu Pratap Singh Shekhawat, BCA Third Year

Pooja Sharma , BCA Third Year
Pooja Sharma , BCA Third YearPooja Sharma , BCA Third Year
Pooja Sharma , BCA Third Year
Dezyneecole
 
Ronak Kachhawa , BCA Third Year
Ronak Kachhawa , BCA Third YearRonak Kachhawa , BCA Third Year
Ronak Kachhawa , BCA Third Year
Dezyneecole
 
Rakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearRakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third Year
Dezyneecole
 
Reshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third YearReshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third Year
dezyneecole
 
Kirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third YearKirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third Year
dezyneecole
 
hotel-management-report.pdf
hotel-management-report.pdfhotel-management-report.pdf
hotel-management-report.pdf
UtkarshSharma840816
 
Deepika Mittal , BCA Third Year
Deepika Mittal , BCA Third YearDeepika Mittal , BCA Third Year
Deepika Mittal , BCA Third Year
dezyneecole
 
Deepak Soni ,BCA Third Year
Deepak Soni ,BCA Third YearDeepak Soni ,BCA Third Year
Deepak Soni ,BCA Third Year
Dezyneecole
 
Vinita Vaishnav , BCA Third Year
Vinita Vaishnav , BCA Third YearVinita Vaishnav , BCA Third Year
Vinita Vaishnav , BCA Third Year
Dezyneecole
 
Shivani Chouhan , BCA Third Year
Shivani Chouhan , BCA Third YearShivani Chouhan , BCA Third Year
Shivani Chouhan , BCA Third Year
Dezyneecole
 
Shikh Mohammad Usman Haidar , BCA Third Year
Shikh Mohammad Usman Haidar , BCA Third YearShikh Mohammad Usman Haidar , BCA Third Year
Shikh Mohammad Usman Haidar , BCA Third Year
Dezyneecole
 
Ram Prasad , BCA Third Year
Ram Prasad , BCA Third YearRam Prasad , BCA Third Year
Ram Prasad , BCA Third Year
Dezyneecole
 
Hardik Jadam , BCA Third Year
Hardik Jadam , BCA Third YearHardik Jadam , BCA Third Year
Hardik Jadam , BCA Third Year
Dezyneecole
 
Mithlesh Singh Rawat , BCA Third Year
Mithlesh Singh Rawat , BCA Third YearMithlesh Singh Rawat , BCA Third Year
Mithlesh Singh Rawat , BCA Third Year
dezyneecole
 
Bhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third YearBhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third Year
Dezyneecole
 
Sachin Foujdar , BCA Third Year
Sachin Foujdar , BCA Third YearSachin Foujdar , BCA Third Year
Sachin Foujdar , BCA Third Year
Dezyneecole
 
Shikh Mohammad Usman Haidar , BCA Third Year
Shikh Mohammad Usman Haidar , BCA Third YearShikh Mohammad Usman Haidar , BCA Third Year
Shikh Mohammad Usman Haidar , BCA Third Year
Dezyneecole
 
Bhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third YearBhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third Year
Dezyneecole
 
C++ coding for Banking System program
C++ coding for Banking System programC++ coding for Banking System program
C++ coding for Banking System program
Harsh Solanki
 
Umesh Taglani,Project on C language,Final Year BCA ,Dezyne E'cole College
Umesh Taglani,Project on C language,Final Year BCA ,Dezyne E'cole CollegeUmesh Taglani,Project on C language,Final Year BCA ,Dezyne E'cole College
Umesh Taglani,Project on C language,Final Year BCA ,Dezyne E'cole College
dezyneecole
 

Similar to Bhanu Pratap Singh Shekhawat, BCA Third Year (20)

Pooja Sharma , BCA Third Year
Pooja Sharma , BCA Third YearPooja Sharma , BCA Third Year
Pooja Sharma , BCA Third Year
 
Ronak Kachhawa , BCA Third Year
Ronak Kachhawa , BCA Third YearRonak Kachhawa , BCA Third Year
Ronak Kachhawa , BCA Third Year
 
Rakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearRakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third Year
 
Reshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third YearReshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third Year
 
Kirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third YearKirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third Year
 
hotel-management-report.pdf
hotel-management-report.pdfhotel-management-report.pdf
hotel-management-report.pdf
 
Deepika Mittal , BCA Third Year
Deepika Mittal , BCA Third YearDeepika Mittal , BCA Third Year
Deepika Mittal , BCA Third Year
 
Deepak Soni ,BCA Third Year
Deepak Soni ,BCA Third YearDeepak Soni ,BCA Third Year
Deepak Soni ,BCA Third Year
 
Vinita Vaishnav , BCA Third Year
Vinita Vaishnav , BCA Third YearVinita Vaishnav , BCA Third Year
Vinita Vaishnav , BCA Third Year
 
Shivani Chouhan , BCA Third Year
Shivani Chouhan , BCA Third YearShivani Chouhan , BCA Third Year
Shivani Chouhan , BCA Third Year
 
Shikh Mohammad Usman Haidar , BCA Third Year
Shikh Mohammad Usman Haidar , BCA Third YearShikh Mohammad Usman Haidar , BCA Third Year
Shikh Mohammad Usman Haidar , BCA Third Year
 
Ram Prasad , BCA Third Year
Ram Prasad , BCA Third YearRam Prasad , BCA Third Year
Ram Prasad , BCA Third Year
 
Hardik Jadam , BCA Third Year
Hardik Jadam , BCA Third YearHardik Jadam , BCA Third Year
Hardik Jadam , BCA Third Year
 
Mithlesh Singh Rawat , BCA Third Year
Mithlesh Singh Rawat , BCA Third YearMithlesh Singh Rawat , BCA Third Year
Mithlesh Singh Rawat , BCA Third Year
 
Bhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third YearBhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third Year
 
Sachin Foujdar , BCA Third Year
Sachin Foujdar , BCA Third YearSachin Foujdar , BCA Third Year
Sachin Foujdar , BCA Third Year
 
Shikh Mohammad Usman Haidar , BCA Third Year
Shikh Mohammad Usman Haidar , BCA Third YearShikh Mohammad Usman Haidar , BCA Third Year
Shikh Mohammad Usman Haidar , BCA Third Year
 
Bhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third YearBhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third Year
 
C++ coding for Banking System program
C++ coding for Banking System programC++ coding for Banking System program
C++ coding for Banking System program
 
Umesh Taglani,Project on C language,Final Year BCA ,Dezyne E'cole College
Umesh Taglani,Project on C language,Final Year BCA ,Dezyne E'cole CollegeUmesh Taglani,Project on C language,Final Year BCA ,Dezyne E'cole College
Umesh Taglani,Project on C language,Final Year BCA ,Dezyne E'cole College
 

More from Dezyneecole

Pratibha Kumari, Diploma Fashion Design First Year, (Basic Pattern Developmen...
Pratibha Kumari, Diploma Fashion Design First Year, (Basic Pattern Developmen...Pratibha Kumari, Diploma Fashion Design First Year, (Basic Pattern Developmen...
Pratibha Kumari, Diploma Fashion Design First Year, (Basic Pattern Developmen...
Dezyneecole
 
Shaily Goyar, Diploma Fashion Design First Year, (Basic Pattern Development P...
Shaily Goyar, Diploma Fashion Design First Year, (Basic Pattern Development P...Shaily Goyar, Diploma Fashion Design First Year, (Basic Pattern Development P...
Shaily Goyar, Diploma Fashion Design First Year, (Basic Pattern Development P...
Dezyneecole
 
Shaily Goyar, Diploma Fashion Design First Year, (Fashion illustration for Fa...
Shaily Goyar, Diploma Fashion Design First Year, (Fashion illustration for Fa...Shaily Goyar, Diploma Fashion Design First Year, (Fashion illustration for Fa...
Shaily Goyar, Diploma Fashion Design First Year, (Fashion illustration for Fa...
Dezyneecole
 
Shaily Goyar, Diploma Fashion Design First Year, (Embroidery Project)
Shaily Goyar, Diploma Fashion Design First Year, (Embroidery Project)Shaily Goyar, Diploma Fashion Design First Year, (Embroidery Project)
Shaily Goyar, Diploma Fashion Design First Year, (Embroidery Project)
Dezyneecole
 
Shaily Goyar, Diploma Fashion Design First Year, (Fashion Draping Project)
Shaily Goyar, Diploma Fashion Design First Year, (Fashion Draping Project)Shaily Goyar, Diploma Fashion Design First Year, (Fashion Draping Project)
Shaily Goyar, Diploma Fashion Design First Year, (Fashion Draping Project)
Dezyneecole
 
Shaily Goyar, Diploma Fashion Design First Year, (Design Basics Project)
Shaily Goyar, Diploma Fashion Design First Year, (Design Basics Project)Shaily Goyar, Diploma Fashion Design First Year, (Design Basics Project)
Shaily Goyar, Diploma Fashion Design First Year, (Design Basics Project)
Dezyneecole
 
Shaily Goyar, Diploma Fashion Design First Year, (Corel Draw Project)
Shaily Goyar, Diploma Fashion Design First Year, (Corel Draw Project)Shaily Goyar, Diploma Fashion Design First Year, (Corel Draw Project)
Shaily Goyar, Diploma Fashion Design First Year, (Corel Draw Project)
Dezyneecole
 
Tanya Jain, Diploma Fashion Design First Year, (Fashion illustration for Fash...
Tanya Jain, Diploma Fashion Design First Year, (Fashion illustration for Fash...Tanya Jain, Diploma Fashion Design First Year, (Fashion illustration for Fash...
Tanya Jain, Diploma Fashion Design First Year, (Fashion illustration for Fash...
Dezyneecole
 
Tanya Jain , Diploma Fashion Design First Year, (Basic Pattern Development Pr...
Tanya Jain , Diploma Fashion Design First Year, (Basic Pattern Development Pr...Tanya Jain , Diploma Fashion Design First Year, (Basic Pattern Development Pr...
Tanya Jain , Diploma Fashion Design First Year, (Basic Pattern Development Pr...
Dezyneecole
 
Tanya Jain, Diploma Fashion Design First Year, (Embroidery Project)
Tanya Jain, Diploma Fashion Design First Year, (Embroidery Project)Tanya Jain, Diploma Fashion Design First Year, (Embroidery Project)
Tanya Jain, Diploma Fashion Design First Year, (Embroidery Project)
Dezyneecole
 
Tanya Jain, Diploma Fashion Design First Year, (Fashion Draping Project)
Tanya Jain, Diploma Fashion Design First Year, (Fashion Draping Project)Tanya Jain, Diploma Fashion Design First Year, (Fashion Draping Project)
Tanya Jain, Diploma Fashion Design First Year, (Fashion Draping Project)
Dezyneecole
 
Tanya Jain , Diploma Fashion Design First Year, (Design Basics Project)
Tanya Jain , Diploma Fashion Design First Year, (Design Basics Project)Tanya Jain , Diploma Fashion Design First Year, (Design Basics Project)
Tanya Jain , Diploma Fashion Design First Year, (Design Basics Project)
Dezyneecole
 
Gouri Ramchandani, Diploma Fashion Design First Year, (Illustration For Fashi...
Gouri Ramchandani, Diploma Fashion Design First Year, (Illustration For Fashi...Gouri Ramchandani, Diploma Fashion Design First Year, (Illustration For Fashi...
Gouri Ramchandani, Diploma Fashion Design First Year, (Illustration For Fashi...
Dezyneecole
 
Gouri Ramchandani, Diploma Fashion Design First Year, (Basic Pattern Developm...
Gouri Ramchandani, Diploma Fashion Design First Year, (Basic Pattern Developm...Gouri Ramchandani, Diploma Fashion Design First Year, (Basic Pattern Developm...
Gouri Ramchandani, Diploma Fashion Design First Year, (Basic Pattern Developm...
Dezyneecole
 
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
Dezyneecole
 
Gouri Ramchandani, Diploma Fashion Design First Year, (Design Basics Project)
Gouri Ramchandani, Diploma Fashion Design First Year, (Design Basics  Project)Gouri Ramchandani, Diploma Fashion Design First Year, (Design Basics  Project)
Gouri Ramchandani, Diploma Fashion Design First Year, (Design Basics Project)
Dezyneecole
 
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
Dezyneecole
 
Dimple Mordani, Diploma Fashion Design First Year, (Embroidery Project)
Dimple Mordani, Diploma Fashion Design First Year, (Embroidery  Project)Dimple Mordani, Diploma Fashion Design First Year, (Embroidery  Project)
Dimple Mordani, Diploma Fashion Design First Year, (Embroidery Project)
Dezyneecole
 
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
Dezyneecole
 
Dimple Mordani, Diploma Fashion Design First Year, (Basic Pattern Development...
Dimple Mordani, Diploma Fashion Design First Year, (Basic Pattern Development...Dimple Mordani, Diploma Fashion Design First Year, (Basic Pattern Development...
Dimple Mordani, Diploma Fashion Design First Year, (Basic Pattern Development...
Dezyneecole
 

More from Dezyneecole (20)

Pratibha Kumari, Diploma Fashion Design First Year, (Basic Pattern Developmen...
Pratibha Kumari, Diploma Fashion Design First Year, (Basic Pattern Developmen...Pratibha Kumari, Diploma Fashion Design First Year, (Basic Pattern Developmen...
Pratibha Kumari, Diploma Fashion Design First Year, (Basic Pattern Developmen...
 
Shaily Goyar, Diploma Fashion Design First Year, (Basic Pattern Development P...
Shaily Goyar, Diploma Fashion Design First Year, (Basic Pattern Development P...Shaily Goyar, Diploma Fashion Design First Year, (Basic Pattern Development P...
Shaily Goyar, Diploma Fashion Design First Year, (Basic Pattern Development P...
 
Shaily Goyar, Diploma Fashion Design First Year, (Fashion illustration for Fa...
Shaily Goyar, Diploma Fashion Design First Year, (Fashion illustration for Fa...Shaily Goyar, Diploma Fashion Design First Year, (Fashion illustration for Fa...
Shaily Goyar, Diploma Fashion Design First Year, (Fashion illustration for Fa...
 
Shaily Goyar, Diploma Fashion Design First Year, (Embroidery Project)
Shaily Goyar, Diploma Fashion Design First Year, (Embroidery Project)Shaily Goyar, Diploma Fashion Design First Year, (Embroidery Project)
Shaily Goyar, Diploma Fashion Design First Year, (Embroidery Project)
 
Shaily Goyar, Diploma Fashion Design First Year, (Fashion Draping Project)
Shaily Goyar, Diploma Fashion Design First Year, (Fashion Draping Project)Shaily Goyar, Diploma Fashion Design First Year, (Fashion Draping Project)
Shaily Goyar, Diploma Fashion Design First Year, (Fashion Draping Project)
 
Shaily Goyar, Diploma Fashion Design First Year, (Design Basics Project)
Shaily Goyar, Diploma Fashion Design First Year, (Design Basics Project)Shaily Goyar, Diploma Fashion Design First Year, (Design Basics Project)
Shaily Goyar, Diploma Fashion Design First Year, (Design Basics Project)
 
Shaily Goyar, Diploma Fashion Design First Year, (Corel Draw Project)
Shaily Goyar, Diploma Fashion Design First Year, (Corel Draw Project)Shaily Goyar, Diploma Fashion Design First Year, (Corel Draw Project)
Shaily Goyar, Diploma Fashion Design First Year, (Corel Draw Project)
 
Tanya Jain, Diploma Fashion Design First Year, (Fashion illustration for Fash...
Tanya Jain, Diploma Fashion Design First Year, (Fashion illustration for Fash...Tanya Jain, Diploma Fashion Design First Year, (Fashion illustration for Fash...
Tanya Jain, Diploma Fashion Design First Year, (Fashion illustration for Fash...
 
Tanya Jain , Diploma Fashion Design First Year, (Basic Pattern Development Pr...
Tanya Jain , Diploma Fashion Design First Year, (Basic Pattern Development Pr...Tanya Jain , Diploma Fashion Design First Year, (Basic Pattern Development Pr...
Tanya Jain , Diploma Fashion Design First Year, (Basic Pattern Development Pr...
 
Tanya Jain, Diploma Fashion Design First Year, (Embroidery Project)
Tanya Jain, Diploma Fashion Design First Year, (Embroidery Project)Tanya Jain, Diploma Fashion Design First Year, (Embroidery Project)
Tanya Jain, Diploma Fashion Design First Year, (Embroidery Project)
 
Tanya Jain, Diploma Fashion Design First Year, (Fashion Draping Project)
Tanya Jain, Diploma Fashion Design First Year, (Fashion Draping Project)Tanya Jain, Diploma Fashion Design First Year, (Fashion Draping Project)
Tanya Jain, Diploma Fashion Design First Year, (Fashion Draping Project)
 
Tanya Jain , Diploma Fashion Design First Year, (Design Basics Project)
Tanya Jain , Diploma Fashion Design First Year, (Design Basics Project)Tanya Jain , Diploma Fashion Design First Year, (Design Basics Project)
Tanya Jain , Diploma Fashion Design First Year, (Design Basics Project)
 
Gouri Ramchandani, Diploma Fashion Design First Year, (Illustration For Fashi...
Gouri Ramchandani, Diploma Fashion Design First Year, (Illustration For Fashi...Gouri Ramchandani, Diploma Fashion Design First Year, (Illustration For Fashi...
Gouri Ramchandani, Diploma Fashion Design First Year, (Illustration For Fashi...
 
Gouri Ramchandani, Diploma Fashion Design First Year, (Basic Pattern Developm...
Gouri Ramchandani, Diploma Fashion Design First Year, (Basic Pattern Developm...Gouri Ramchandani, Diploma Fashion Design First Year, (Basic Pattern Developm...
Gouri Ramchandani, Diploma Fashion Design First Year, (Basic Pattern Developm...
 
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
 
Gouri Ramchandani, Diploma Fashion Design First Year, (Design Basics Project)
Gouri Ramchandani, Diploma Fashion Design First Year, (Design Basics  Project)Gouri Ramchandani, Diploma Fashion Design First Year, (Design Basics  Project)
Gouri Ramchandani, Diploma Fashion Design First Year, (Design Basics Project)
 
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
 
Dimple Mordani, Diploma Fashion Design First Year, (Embroidery Project)
Dimple Mordani, Diploma Fashion Design First Year, (Embroidery  Project)Dimple Mordani, Diploma Fashion Design First Year, (Embroidery  Project)
Dimple Mordani, Diploma Fashion Design First Year, (Embroidery Project)
 
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
 
Dimple Mordani, Diploma Fashion Design First Year, (Basic Pattern Development...
Dimple Mordani, Diploma Fashion Design First Year, (Basic Pattern Development...Dimple Mordani, Diploma Fashion Design First Year, (Basic Pattern Development...
Dimple Mordani, Diploma Fashion Design First Year, (Basic Pattern Development...
 

Recently uploaded

Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
S. Raj Kumar
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Constructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective CommunicationConstructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective Communication
Chevonnese Chevers Whyte, MBA, B.Sc.
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
BoudhayanBhattachari
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 

Recently uploaded (20)

Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Constructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective CommunicationConstructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective Communication
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 

Bhanu Pratap Singh Shekhawat, BCA Third Year

  • 1. SUBMITED BY Bhanu Pratap Singh Shekhawat Bachelor of Computer Application II YEAR Dezyne E’cole College www.dezyneecole.com INFORMATION TECHNOLOGY PROJECT REPORT C++ PROGRAMMING E-Mail Validator TOPIC C++
  • 2. Project Report On C++ Programming At Dezyne E’cole College Ajmer Submitted to Dezyne E’cole College Towards the Partial Fulfillment on Bachelor of Computer Application By Bhanu Pratap Singh Shekhawat Dezyne E’cole College 106/10 Civil Line, Ajmer Tel – 0145-2624679 Www.dezyneecole.com 2016
  • 3. Acknowledgement I Bhanu Pratap Singh Shekhawat, Student On Dezyne E’cole College, An Extremely Grateful To Each And Every Individual. Who Has Contributed. In Successful Completion Of My Project. I Express My Gratitude Towards Dezyne E’cole College For Their. Guidance and Contrast Supervision As Well As For Providing The Necessary Information And Support Regarding The Completion Of Project Thank You
  • 4. 1 | P a g e Synopsis This Project Is A Minor. Project Made, Based On The Practical Concept Of C++ This Project Has Made Our Basic Practical Concepts On C++ Strong
  • 5. 2 | P a g e
  • 6. 3 | P a g e
  • 7. 4 | P a g e
  • 8. 5 | P a g e #include<iostream.h> #include<stdio.h> #include<conio.h> #include<string.h> #include<stdlib.h> #include<dos.h> #include<fstream.h> class save { public: char id[60]; char password[60]; char fn[60]; char ln[40]; char ci[40]; char st[40]; char cou[40]; char date[12]; }; save a; fstream f; fstream c; void main() {
  • 9. 6 | P a g e class m1 { public: /*Make background black*/ void white() { textbackground(BLACK); for(int i=0;i<2000;i++) { cprintf(" "); } } /*Make main screen option*/ void mains() { white(); textbackground(6); for(int i=30;i<53;i++) { for(int j=5;j<19;j++) { gotoxy(i,j); cprintf(" "); } }
  • 10. 7 | P a g e textcolor(0); for(i=30;i<53;i++) { gotoxy(i,17); cprintf("_"); } for(i=30;i<53;i++) { gotoxy(i,6); cprintf("-"); } gotoxy(33,5); cprintf("E-mail validatior"); gotoxy(35,18); cprintf("Choose option"); textcolor(7); gotoxy(32,8); cprintf("1. Login"); gotoxy(32,10); cprintf("2. Sign up"); gotoxy(32,12); cprintf("3. Forgot password"); gotoxy(32,14); cprintf("4. Exit"); } /*Sign up account*/ void signinopp()
  • 11. 8 | P a g e { white(); textbackground(6); for(int i=15;i<68;i++) { for(int j=6;j<18;j++) { gotoxy(i,j); cprintf(" "); } } textcolor(0); for(i=25;i<54;i++) { gotoxy(i,7); cprintf("_"); } gotoxy(62,17); cprintf("N"); gotoxy(56,17); cprintf("B"); textcolor(7); gotoxy(63,17); cprintf("ext"); gotoxy(57,17); cprintf("ack"); gotoxy(32,6);
  • 12. 9 | P a g e cprintf("Sign up account"); gotoxy(17,9); cprintf("First name "); gotoxy(29,9); //for name gets(a.fn); gotoxy(18,10); cprintf("Last name "); gotoxy(29,10); //last name gets(a.ln); gotoxy(23,11); cprintf("City "); gotoxy(29,11); //city gets(a.ci); gotoxy(22,12); cprintf("State"); gotoxy(29,12); //state gets(a.st); gotoxy(20,13); cprintf("Country"); gotoxy(29,13); //country gets(a.cou); gotoxy(24,14); cprintf("DOB "); gotoxy(29,14); //date gets(a.date); gotoxy(62,17); }
  • 13. 10 | P a g e /*Sign up next option*/ void signinnext() { l2: l1: white(); textbackground(6); for(int i=25;i<55;i++) { for(int j=8;j<16;j++) { gotoxy(i,j); cprintf(" "); } } textcolor(0); textbackground(6); gotoxy(48,15); cprintf("S"); gotoxy(40,15); cprintf("C"); gotoxy(37,8); cprintf("Sign up"); textcolor(7); gotoxy(49,15); cprintf("ubmit"); gotoxy(41,15);
  • 14. 11 | P a g e cprintf("ancel"); gotoxy(32,10); cprintf("Id"); gotoxy(26,12); cprintf("Password"); textcolor(0); textbackground(WHITE); for(i=35;i<53;i++) { gotoxy(i,10); cprintf(" "); } for(i=35;i<53;i++) { gotoxy(i,12); cprintf(" "); } gotoxy(35,10); gets(a.id); gotoxy(35,10); cout<<a.id<<"@dec.com"; int sp,com; sp=com=0; for(i=0;a.id[i]!='0';i++) { if(a.id[i]==32) {
  • 15. 12 | P a g e sp++; } } if(a.id[i-4]=='.' && a.id[i-3]=='c' && a.id[i-2]=='o' && a.id[i-1]=='m') { com++; } if(sp==0 && com==0) { save w; f.open("valid.dat",ios::in); while(f) { f.read((char *)&w,sizeof(w)); if(strcmp(w.id,a.id)==0) { textbackground(6); gotoxy(26,14); //Id already exist cprintf("Id is already exist"); getch(); clrscr(); goto l1; } } f.close(); gotoxy(35,12); //for input password int sic=-1;
  • 16. 13 | P a g e while(a.password[sic]!=13) { sic++; a.password[sic]=getch(); cout<<"*"; if(a.password[sic]==8) { cout<<"b bb b"; sic-=2; } } a.password[sic]='0'; // gets(password); signbuttk: gotoxy(48,15); char signbutt; signbutt=getch(); if(signbutt=='s' || signbutt=='S') { textbackground(6); textcolor(7); gotoxy(26,14); cout<<" Account create sucessfully "; delay(2000); goto acs; } else if(signbutt=='C' || signbutt=='c')
  • 17. 14 | P a g e { main(); } else { goto signbuttk; } } else { gotoxy(26,14); //wrong input cprintf("Wrong input"); getch(); clrscr(); goto l2; } acs: } /*Use store sign up data*/ void datain() { f.open("valid.dat",ios::app | ios::out); f.write((char *)&a,sizeof(a)); f.close(); } /*Log in page*/ void loginid()
  • 18. 15 | P a g e { ll: white(); textbackground(6); for(int i=25;i<55;i++) { for(int j=8;j<15;j++) { gotoxy(i,j); cprintf(" "); } } textcolor(0); gotoxy(49,14); cprintf("L"); gotoxy(41,14); cprintf("C"); gotoxy(37,8); cprintf("Login"); textbackground(WHITE); for(i=35;i<53;i++) { gotoxy(i,10); cprintf(" "); } for(i=35;i<53;i++) {
  • 19. 16 | P a g e gotoxy(i,12); cprintf(" "); } textcolor(7); textbackground(6); gotoxy(50,14); cprintf("ogin"); gotoxy(42,14); cprintf("ancel"); gotoxy(32,10); cprintf("Id"); gotoxy(26,12); cprintf("Password"); int sp,com; sp=com=0; gotoxy(35,10); // for input id gets(a.id); gotoxy(35,10); cout<<a.id<<"@dec.com"; for(i=0;a.id[i]!='0';i++) { if(a.id[i]==32) { sp++; } } if(a.id[i-4]=='.' && a.id[i-3]=='c' && a.id[i-2]=='o' && a.id[i-1]=='m')
  • 20. 17 | P a g e { com++; } if(sp==0 && com==0) { gotoxy(35,12); //for input password int sic=-1; while(a.password[sic]!=13) { sic++; a.password[sic]=getch(); cout<<"*"; if(a.password[sic]==8) { cout<<"b bb b"; sic-=2; } } a.password[sic]='0'; // gets(password); logpressopp: gotoxy(51,14); char logpress; logpress=getch(); if(logpress=='l' || logpress=='L') { goto ln;
  • 21. 18 | P a g e } else if(logpress=='C' || logpress=='c') { main(); } else { goto logpressopp; } } else { gotoxy(28,14); //wrong input cprintf("Wrong input"); getch(); clrscr(); goto ll; } ln: } /*data out of id*/ void dout() { loginid(); save w; int da=0; f.open("valid.dat",ios::in);
  • 22. 19 | P a g e while(f) { f.read((char *)&w,sizeof(w)); if(strcmp(a.id,w.id)==0 && strcmp(a.password,w.password)==0) { strcpy(a.fn,w.fn); strcpy(a.ln,w.ln); strcpy(a.ci,w.ci); strcpy(a.st,w.st); strcpy(a.cou,w.cou); strcpy(a.date,w.date); da++; break; } else if(f==0) { break; } else { continue; } } f.close(); if(da==0) { gotoxy(26,14); //Id not available
  • 23. 20 | P a g e cprintf("Access denied"); delay(2100); main(); } } void loginopp() { white(); textbackground(6); for(int i=26;i<57;i++) { for(int j=7;j<22;j++) { gotoxy(i,j); cprintf(" "); } } textcolor(BLACK); for(i=26;i<57;i++) { gotoxy(i,6); cprintf("-"); } for(i=26;i<57;i++) { gotoxy(i,9); cprintf("-");
  • 24. 21 | P a g e } gotoxy(31,20); cprintf("Choose your operation"); gotoxy(27,7); cprintf("Welcome "); cout<<a.fn; gotoxy(35,8); cout<<a.ln; textcolor(7); gotoxy(32,10); cprintf("1. View"); gotoxy(32,12); cprintf("2. Modify detail"); gotoxy(32,14); cprintf("3. Change password"); gotoxy(32,16); cprintf("4. Log out"); } void view() { white(); textbackground(6); for(int i=15;i<68;i++) { for(int j=6;j<21;j++) { gotoxy(i,j);
  • 25. 22 | P a g e cprintf(" "); } } textcolor(0); gotoxy(61,19); cprintf("B"); for(i=15;i<68;i++) { gotoxy(i,6); cprintf("-"); } for(i=15;i<68;i++) { gotoxy(i,8); cprintf("-"); } textcolor(WHITE); gotoxy(62,19); cprintf("ACK"); gotoxy(27,7); cprintf(" "); gotoxy(17,9); cprintf("You are Miss/Mr "); gotoxy(22,11); cprintf("in: "); gotoxy(19,13); cprintf("State: ");
  • 26. 23 | P a g e gotoxy(17,15); cprintf("Country: "); gotoxy(21,17); cprintf("DOB: "); gotoxy(32,7); //for id cout<<a.id<<"@dec.com"; gotoxy(33,9); //for name cout<<a.fn<<" "<<a.ln; gotoxy(26,11); //city cout<<a.ci; gotoxy(26,13); //state cout<<a.st; gotoxy(26,15); //country cout<<a.cou; gotoxy(26,17); //date int il=0; while(a.date[il]!='0') { cout<<a.date[il]; il++; } } /*Change password*/ void changepass() { bop: nm:
  • 27. 24 | P a g e white(); textbackground(6); for(int i=21;i<61;i++) { for(int j=8;j<18;j++) { gotoxy(i,j); cprintf(" "); } } textcolor(0); for(i=21;i<61;i++) { gotoxy(i,16); cprintf("-"); } gotoxy(55,17); cprintf("S"); gotoxy(47,17); cprintf("C"); gotoxy(34,8); cprintf("Change password "); textcolor(WHITE); gotoxy(56,17); cprintf("ave"); gotoxy(48,17); cprintf("ancel");
  • 28. 25 | P a g e char passn[20],passo[20],passc[20]; int ck=0; gotoxy(24,10); cprintf("Old password : "); gotoxy(39,10); //old password int sic=-1; while(passo[sic]!=13) { sic++; passo[sic]=getch(); cout<<"*"; if(passo[sic]==8) { cout<<"b bb b"; sic-=2; } } passo[sic]='0'; // gets(passo); if(strcmp(a.password,passo)==0) { gotoxy(24,12); cprintf("New password : "); gotoxy(39,12); //new password sic=-1; while(passn[sic]!=13) {
  • 29. 26 | P a g e sic++; passn[sic]=getch(); cout<<"*"; if(passn[sic]==8) { cout<<"b bb b"; sic-=2; } } passn[sic]='0'; // gets(passn); gotoxy(24,14); cprintf("Confirm password : "); gotoxy(43,14); //confirm password int sic=-1; while(passc[sic]!=13) { sic++; passc[sic]=getch(); cout<<"*"; if(passc[sic]==8) { cout<<"b bb b"; sic-=2; } } passc[sic]='0';
  • 30. 27 | P a g e // gets(passc); if(strcmp(passn,passc)==0) { back: char oppnext; gotoxy(47,17); oppnext=getch(); if(oppnext=='S' || oppnext=='s') { save w; f.open("valid.dat",ios::in); while(f) { f.read((char *) &w,sizeof(w)); if(strcmp(a.id,w.id)==0 && strcmp(a.password,w.password)==0) { strcpy(w.password,passn); c.open("valid1.dat",ios::app | ios::in); c.write((char *)&w,sizeof(w)); c.close(); ck++; } else if(f==0) { break; }
  • 31. 28 | P a g e else { // c.write((char *) &w,sizeof(w)); c.open("valid1.dat",ios::app | ios::in); c.write((char *)&w,sizeof(w)); c.close(); } } f.close(); remove("valid.dat"); rename("valid1.dat","valid.dat"); strcpy(a.password,passn); } else if(oppnext=='c' || oppnext=='C') { goto cp; } else { goto back; } } else { gotoxy(25,17); //does not match cprintf("Password does not match"); delay(2000);
  • 32. 29 | P a g e clrscr(); goto nm; } } else { gotoxy(25,17); // wrong input cprintf("Wrong input"); delay(700); clrscr(); goto bop; } if(ck>=1) { gotoxy(22,17); //password change sucessfully cprintf("Password change sucessfull"); delay(1000); } else { gotoxy(22,17); //password not change sucessfully cprintf("Password not changed"); delay(1000); } cp: } /*Modify detail*/
  • 33. 30 | P a g e void modify() { white(); textbackground(6); for(int i=27;i<57;i++) { for(int j=6;j<20;j++) { gotoxy(i,j); cprintf(" "); } } textcolor(0); for(i=27;i<57;i++) { gotoxy(i,7); cprintf("-"); } for(i=27;i<57;i++) { gotoxy(i,18); cprintf("-"); } gotoxy(36,19); cprintf("Choose option"); gotoxy(38,6); cprintf("Modify");
  • 34. 31 | P a g e textcolor(7); gotoxy(29,8); cprintf("1. Change First name"); gotoxy(29,10); cprintf("2. Change City"); gotoxy(29,12); cprintf("3. Change State"); gotoxy(29,14); cprintf("4. Change Country"); gotoxy(29,16); cprintf("5. Back"); } /*Change first name*/ void changefn() { bop: white(); textbackground(6); for(int i=21;i<61;i++) { for(int j=8;j<18;j++) { gotoxy(i,j); cprintf(" "); } } textcolor(0);
  • 35. 32 | P a g e for(i=21;i<61;i++) { gotoxy(i,16); cprintf("-"); } gotoxy(55,17); cprintf("S"); gotoxy(47,17); cprintf("C"); gotoxy(31,8); cprintf("Change first name "); textcolor(WHITE); gotoxy(56,17); cprintf("ave"); gotoxy(48,17); cprintf("ancel"); char fnn[40],fno[40]; int ck=0; gotoxy(24,10); cprintf("Old name : "); gotoxy(35,10); //old name gets(fno); if(strcmp(a.fn,fno)==0) { gotoxy(24,12); cprintf("New name : "); gotoxy(35,12); //new name
  • 36. 33 | P a g e gets(fnn); back: gotoxy(48,17); char oppnext; oppnext=getch(); if(oppnext=='S' || oppnext=='s') { save w; f.open("valid.dat",ios::in); // c.open("valid1.txt",ios::app); while(f) { f.read((char *) &w,sizeof(w)); if(strcmp(a.id,w.id)==0 && strcmp(a.password,w.password)==0 && strcmp(w.fn,a.fn)==0) { strcpy(w.fn,fnn); // c.write((char *) &w,sizeof(w)); c.open("valid1.dat",ios::app | ios::out); c.write((char *)&w,sizeof(w)); c.close(); ck++; } else if(f==0) { break; }
  • 37. 34 | P a g e else { // c.write((char *) &w,sizeof(w)); c.open("valid1.dat",ios::app | ios::out); c.write((char *)&w,sizeof(w)); c.close(); } } f.close(); remove("valid.dat"); rename("valid1.dat","valid.dat"); strcpy(a.fn,fnn); } else if(oppnext=='C' || oppnext=='c') { goto cfn; } else { goto back; } } else { gotoxy(25,17); // wrong input cprintf("Wrong input"); delay(1300);
  • 38. 35 | P a g e clrscr(); goto bop; } if(ck>=1) { gotoxy(22,17); //name change sucessfully cprintf("Name change sucessfully"); delay(1400); } else { gotoxy(22,17); //name not change sucessfully cprintf("Name not change"); delay(2000); } cfn: } /*Change city*/ void changeci() { bop: white(); textbackground(6); for(int i=21;i<61;i++) { for(int j=8;j<18;j++) {
  • 39. 36 | P a g e gotoxy(i,j); cprintf(" "); } } textcolor(0); for(i=21;i<61;i++) { gotoxy(i,16); cprintf("-"); } gotoxy(55,17); cprintf("S"); gotoxy(47,17); cprintf("C"); gotoxy(35,8); cprintf("Change City "); textcolor(WHITE); gotoxy(56,17); cprintf("ave"); gotoxy(48,17); cprintf("ancel"); char cin[40],cio[40]; int ck=0; gotoxy(24,10); cprintf("Old city : "); gotoxy(35,10); //old name gets(cio);
  • 40. 37 | P a g e if(strcmp(a.ci,cio)==0) { gotoxy(24,12); cprintf("New city : "); gotoxy(35,12); //new city gets(cin); back: gotoxy(48,17); char oppnext; oppnext=getch(); if(oppnext=='S' || oppnext=='s') { save w; f.open("valid.dat",ios::in); // c.open("valid1.txt",ios::app); while(f) { f.read((char *) &w,sizeof(w)); if(strcmp(a.id,w.id)==0 && strcmp(a.password,w.password)==0 && strcmp(w.ci,a.ci)==0) { strcpy(w.ci,cin); // c.write((char *) &w,sizeof(w)); c.open("valid1.dat",ios::app | ios::out); c.write((char *)&w,sizeof(w)); c.close(); ck++; }
  • 41. 38 | P a g e else if(f==0) { break; } else { c.open("valid1.dat",ios::app | ios::out); c.write((char *)&w,sizeof(w)); c.close(); } } f.close(); remove("valid.dat"); rename("valid1.dat","valid.dat"); strcpy(a.ci,cin); } else if(oppnext=='C' || oppnext=='c') { goto oppc; } else { goto back; } } else {
  • 42. 39 | P a g e gotoxy(25,17); // wrong input cprintf("Wrong input"); delay(1500); clrscr(); goto bop; } if(ck>=1) { gotoxy(22,17); //city change sucessfully cprintf("City change sucessfull"); delay(1000); } else { gotoxy(22,17); //city not change sucessfully cprintf("City not change"); delay(2000); } oppc: } /*Change state*/ void changest() { bop: white(); textbackground(6); for(int i=21;i<61;i++)
  • 43. 40 | P a g e { for(int j=8;j<18;j++) { gotoxy(i,j); cprintf(" "); } } textcolor(0); for(i=21;i<61;i++) { gotoxy(i,16); cprintf("-"); } gotoxy(55,17); cprintf("S"); gotoxy(47,17); cprintf("C"); gotoxy(35,8); cprintf("Change State "); textcolor(WHITE); gotoxy(56,17); cprintf("ave"); gotoxy(48,17); cprintf("ancel"); char stn[40],sto[40]; int ck=0; gotoxy(24,10);
  • 44. 41 | P a g e cprintf("Old State : "); gotoxy(36,10); //old name gets(sto); if(strcmp(a.st,sto)==0) { gotoxy(24,12); cprintf("New state : "); gotoxy(36,12); //new state gets(stn); back: gotoxy(47,17); char oppnext; oppnext=getch(); if(oppnext=='S' || oppnext=='s') { save w; f.open("valid.dat",ios::in); // c.open("valid1.txt",ios::app); while(f) { f.read((char *) &w,sizeof(w)); if(strcmp(a.id,w.id)==0 && strcmp(a.password,w.password)==0 && strcmp(w.st,a.st)==0) { strcpy(w.st,stn); // c.write((char *) &w,sizeof(w)); c.open("valid1.dat",ios::app | ios::out); c.write((char *)&w,sizeof(w));
  • 45. 42 | P a g e c.close(); ck++; } else if(f==0) { break; } else { c.open("valid1.dat",ios::app | ios::out); c.write((char *)&w,sizeof(w)); c.close(); } } f.close(); remove("valid.dat"); rename("valid1.dat","valid.dat"); strcpy(a.st,stn); } else if(oppnext=='C' || oppnext=='c') { goto opc; } else { goto back; }
  • 46. 43 | P a g e } else { gotoxy(25,17); // wrong input cprintf("Wrong input"); delay(1500); clrscr(); goto bop; } if(ck>=1) { gotoxy(22,17); //state change sucessfully cprintf("State change sucessfull"); delay(1000); } else { gotoxy(22,17); //state not change sucessfully cprintf("State not change"); delay(2000); } opc: } /*Change country*/ void changecou() { bop:
  • 47. 44 | P a g e white(); textbackground(6); for(int i=21;i<61;i++) { for(int j=8;j<18;j++) { gotoxy(i,j); cprintf(" "); } } textcolor(0); for(i=21;i<61;i++) { gotoxy(i,16); cprintf("-"); } gotoxy(55,17); cprintf("S"); gotoxy(47,17); cprintf("C"); gotoxy(35,8); cprintf("Change Country "); textcolor(WHITE); gotoxy(56,17); cprintf("ave"); gotoxy(48,17); cprintf("ancel");
  • 48. 45 | P a g e char coun[40],couo[40]; int ck=0; gotoxy(24,10); cprintf("Old Country : "); gotoxy(38,10); //old name gets(couo); if(strcmp(a.cou,couo)==0) { gotoxy(24,12); cprintf("New country : "); gotoxy(38,12); //new country gets(coun); back: gotoxy(48,17); char oppnext; oppnext=getch(); if(oppnext=='S' || oppnext=='s') { save w; f.open("valid.dat",ios::in); // c.open("valid1.txt",ios::app); while(f) { f.read((char *) &w,sizeof(w)); if(strcmp(a.id,w.id)==0 && strcmp(a.password,w.password)==0 && strcmp(w.cou,a.cou)==0) { strcpy(w.cou,coun);
  • 49. 46 | P a g e // c.write((char *) &w,sizeof(w)); c.open("valid1.dat",ios::app | ios::out); c.write((char *)&w,sizeof(w)); c.close(); ck++; } else if(f==0) { break; } else { c.open("valid1.dat",ios::app | ios::out); c.write((char *)&w,sizeof(w)); c.close(); } } f.close(); remove("valid.dat"); rename("valid1.dat","valid.dat"); strcpy(a.cou,coun); } else if(oppnext=='c' || oppnext=='C') { goto opc; } else
  • 50. 47 | P a g e { goto back; } } else { gotoxy(25,17); // wrong input cprintf("Wrong input"); delay(1500); clrscr(); goto bop; } if(ck>=1) { gotoxy(22,17); //country change sucessfully cprintf("Country change sucessfull"); delay(1400); } else { gotoxy(25,17); //country not change sucessfully cprintf("Country not change"); delay(2000); } opc: } /*Forgot password*/
  • 51. 48 | P a g e void forgot() { white(); textbackground(6); for(int i=25;i<55;i++) { for(int j=8;j<15;j++) { gotoxy(i,j); cprintf(" "); } } textcolor(0); gotoxy(33,8); cprintf("Forgot password"); textcolor(7); textbackground(6); gotoxy(32,10); cprintf("Id:"); gotoxy(35,10); // for input id cin>>a.id; int c=0; save w; ifstream f; f.open("valid.dat",ios::in); while(f) {
  • 52. 49 | P a g e f.read((char *)&w,sizeof(w)); if(strcmp(a.id,w.id)==0) { strcpy(a.password,w.password); c++; break; } else if(f==0) { break; } else { continue; } } f.close(); if(c==1) { gotoxy(26,12); cprintf("Password:"); //password gotoxy(35,12); cout<<a.password; } else { gotoxy(32,14); //id is not valid
  • 53. 50 | P a g e cprintf("Id is not valid"); delay(1000); main(); } } /*Thankyou for log in*/ void thankyou() { white(); int c; char the[25]="Thankyou for login"; gotoxy(30,7); for(int i=0;the[i]!='0';i++) { delay(100); cout<<the[i]; } c=0; for(i=0;a.fn[i]!='0';i++) { c++; } for(i=0;a.ln[i]!='0';i++) { c++; } if(c>=26)
  • 54. 51 | P a g e { gotoxy(c/2+c/3,8); for(i=0;a.fn[i]!='0';i++) { delay(100); cout<<a.fn[i]; } cout<<" "; for(i=0;a.ln[i]!='0';i++) { delay(100); cout<<a.ln[i]; } } else { gotoxy(28,8); for(i=0;a.fn[i]!='0';i++) { delay(100); cout<<a.fn[i]; } cout<<" "; for(i=0;a.ln[i]!='0';i++) { delay(100); cout<<a.ln[i];
  • 55. 52 | P a g e } } for(i=1;i<=6;i++) { delay(500); if(i==4) { cout<<"b bb b"; } else { cout<<"."; } } } }; clrscr(); m1 b; char d; b.mains(); //main d=getch(); if(d=='1') { clrscr();
  • 56. 53 | P a g e b.dout(); ll: bm: clrscr(); cpb: modi2: b.loginopp(); d=getch(); if(d=='1') { clrscr(); b.view(); bmc: char b; b=getch(); if(b=='B' || b=='b') { goto bm; } else { goto bmc; } } else if(d=='2') { clrscr();
  • 57. 54 | P a g e cfn: cci: cst: ccou: b.modify(); modi: char modiopp; modiopp=getch(); if(modiopp=='1') { clrscr(); b.changefn(); goto cfn; } else if(modiopp=='2') { clrscr(); b.changeci(); goto cci; } else if(modiopp=='3') { clrscr(); b.changest(); goto cst; } else if(modiopp=='4')
  • 58. 55 | P a g e { clrscr(); b.changecou(); goto ccou; } else if(modiopp=='5') { clrscr(); goto modi2; } else { delay(800); goto modi; } } else if(d=='3') { clrscr(); b.changepass(); goto cpb; } else if(d=='4') { clrscr(); b.thankyou(); delay(1000);
  • 59. 56 | P a g e main(); } else { gotoxy(36,19); cprintf("Wrong input"); //for wrong input delay(700); goto ll; } } else if(d=='2') { clrscr(); b.signinopp(); si: char sio; sio=getch(); if(sio=='n' || sio=='N') { clrscr(); b.signinnext(); b.datain(); main(); } else if(sio=='B' || sio=='b') {
  • 60. 57 | P a g e main(); } else { goto si; } } else if(d=='3') { clrscr(); b.forgot(); getch(); main(); } else if(d=='4') { exit(0); } else { gotoxy(36,16); //wrong input cprintf("Wrong input"); delay(1000); main(); } getch(); }
  • 61. 58 | P a g e
  • 62. 59 | P a g e THANK YOU