SlideShare a Scribd company logo
Student Management System
(c++ Assignment)
Presented By
Supriya Deshmukh
Bachelors of Computer Application
Dezyne E’cole College
Project report on
Student Management System
Submitted To
Dezyne E’cole College
Towards
The Partial Fulfillment
Of 2017 year, Bachelor Of Computer Application, 2nd
year
By
Supriya Deshmukh
Dezyne E’cole College
106/10, Civil Line Ajmer
www.Dezyneecole.com
Acknowledgment
I Am Supriya Deshmukh Student of Bachelor Of Computer Application Dezyne
E’cole College Would Like To Express My Gratitude to Each And Every Person Who
Has Contributed In Stimulating Suggestions And Encouragement Which Really
Helped Me to Coordinate My Project. I Also Thank Dezyne E’cole College Who
Provided Insight And Expertise That Greatly Assisted the Project. Also, a Special
Thanks To My Teachers, Parents and Colleagues Who Have Supported Me At Every
Step. Not To Forget, the Almighty Who Blessed Me With Good Health Because of
Which I Worked More Efficiently And Better.
In the following pages I am showcasing my work:
Admin Account
Welcome Screen
Add Details
Search Details
Delete Details
Modify Details
View Details
Backup Details
Code :-
#include<iostream.h>
#include<conio.h>
#include<fstream.h>
#include<string.h>
#include<dos.h>
#include<stdlib.h>
#include<stdio.h>
class student
{
public:
char id[60];
char na[60];
char fna[60];
char d[60];
char ci[60];
char ph[60];
};
class admin
{
public:
char id[60];
char pass[60];
};
fstream of,tf,bf;
student mf,mf2;
admin af,af1;
void main()
{
class use
{
public:
char tid[60];
void checkid()
{
int count=0;
of.open("detail.dat",ios::in);
if(of.fail())
{
remove("tid.dat");
}
else
{
while(of.read((char *) &mf, sizeof mf))
{
if(of==0)
{
break;
}
count++;
}
}
of.close();
if(count==0)
{
remove("tid.dat");
remove("detail.dat");
remove("backup.dat");
}
}
void add_menu()
{
textcolor(7);
gotoxy(38,5);
cprintf("Enter Student detail");
gotoxy(30,8);
cprintf("Id ::");
gotoxy(30,10);
cprintf("Name ::");
gotoxy(30,12);
cprintf("Father name ::");
gotoxy(30,14);
cprintf("Department ::");
gotoxy(30,16);
cprintf("City ::");
gotoxy(30,18);
cprintf("Phone no. ::");
textcolor(4);
gotoxy(43,21);
cprintf("S");
gotoxy(50,21);
cprintf("C");
textcolor(7);
gotoxy(44,21);
cprintf("ave");
gotoxy(51,21);
cprintf("ancel");
}
void add_student()
{
textcolor(7);
/* clrscr();
white();
menu_main();
window();
add_menu(); */
int id2;
of.open("tid.dat",ios::in);
tf.open("detail.dat",ios::in);
if(of.fail())
{
if(tf.fail())
{
id2=1;
gotoxy(36,8); //id
cprintf("%d",id2);
}
else
{
while(tf.read((char *) &mf, sizeof mf))
{
}
id2=0; //convert char to int
for(int j=0;mf.id[j]!='0';j++)
{
id2=id2*10+(mf.id[j]-48);
}
id2++;
}
}
else
{
of>>tid;
id2=0; //convert char to int
for(int j=0;tid[j]!='0';j++)
{
id2=id2*10+(tid[j]-48);
}
id2++;
}
tf.close();
of.close();
gotoxy(36,8); //id
cprintf("%d",id2);
int m,t,t1,i,co=0; //convert int to char
t=t1=id2;
while(t1>0)
{
co++;
t1=t1/10;
}
i=co-1;
while(t>0)
{
m=t%10;
tid[i]=m+48;
i--;
t=t/10;
}
tid[co]='0';
gotoxy(36,8); //id
cprintf("%s",tid);
strcpy(mf.id,tid);
gotoxy(38,10); //name
// gets(mf.na); //name
int ic=-1; //name
while(mf.na[ic]!=13)
{
ic++;
mf.na[ic]=getch();
cprintf("%c",mf.na[ic]);
if((mf.na[ic]>=65 && mf.na[ic]<=90) || (mf.na[ic]>=97 &&
mf.na[ic]<=122) || mf.na[ic]==' ' || mf.na[ic]==13 || mf.na[ic]==8)
{
}
else
{
cout<<"b b";
ic-=1;
}
if(mf.na[ic]==8 && ic>=1)
{
cout<<" b b";
ic-=2;
}
if(mf.na[ic]==8 && ic==0)
{
cout<<" ";
ic-=1;
}
}
mf.na[ic]='0';
gotoxy(45,12); //father name
// gets(mf.fna);
ic=-1; //father name
while(mf.fna[ic]!=13)
{
ic++;
mf.fna[ic]=getch();
cprintf("%c",mf.fna[ic]);
if((mf.fna[ic]>=65 && mf.fna[ic]<=90) || (mf.fna[ic]>=97 &&
mf.fna[ic]<=122) || mf.fna[ic]==' ' || mf.fna[ic]==13 || mf.fna[ic]==8)
{
}
else
{
cout<<"b b";
ic-=1;
}
if(mf.fna[ic]==8 && ic>=1)
{
cout<<" b b";
ic-=2;
}
if(mf.fna[ic]==8 && ic==0)
{
cout<<" ";
ic-=1;
}
}
mf.fna[ic]='0';
gotoxy(44,14); //department
// gets(mf.d);
ic=-1; //department
while(mf.d[ic]!=13)
{
ic++;
mf.d[ic]=getch();
cprintf("%c",mf.d[ic]);
if((mf.d[ic]>=65 && mf.d[ic]<=90) || (mf.d[ic]>=97 &&
mf.d[ic]<=122) || mf.d[ic]==' ' || mf.d[ic]==13 || mf.d[ic]==8)
{
}
else
{
cout<<"b b";
ic-=1;
}
if(mf.d[ic]==8 && ic>=1)
{
cout<<" b b";
ic-=2;
}
if(mf.d[ic]==8 && ic==0)
{
cout<<" ";
ic-=1;
}
}
mf.d[ic]='0';
gotoxy(38,16); //city
// gets(mf.ci);
ic=-1; //city
while(mf.ci[ic]!=13)
{
ic++;
mf.ci[ic]=getch();
cprintf("%c",mf.ci[ic]);
if((mf.ci[ic]>=65 && mf.ci[ic]<=90) || (mf.ci[ic]>=97 &&
mf.ci[ic]<=122) || mf.ci[ic]==' ' || mf.ci[ic]==13 || mf.ci[ic]==8)
{
}
else
{
cout<<"b b";
ic-=1;
}
if(mf.ci[ic]==8 && ic>=1)
{
cout<<" b b";
ic-=2;
}
if(mf.ci[ic]==8 && ic==0)
{
cout<<" ";
ic-=1;
}
}
mf.ci[ic]='0';
gotoxy(43,18); //phone no.
// gets(mf.ph);
ic=-1; //phone no.
while(mf.ph[ic]!=13)
{
ic++;
mf.ph[ic]=getch();
cprintf("%c",mf.ph[ic]);
if((mf.ph[ic]>=48 && mf.ph[ic]<=57) || mf.ph[ic]==' ' ||
mf.ph[ic]==13 || mf.ph[ic]==8)
{
}
else
{
cout<<"b b";
ic-=1;
}
if(mf.ph[ic]==8 && ic>=1)
{
cout<<" b b";
ic-=2;
}
if(mf.ph[ic]==8 && ic==0)
{
cout<<" ";
ic-=1;
}
if(ic==9)
{
ic++;
char c;
bk:
c=getch();
if(c==13)
{
break;
}
else
{
goto bk;
}
}
}
mf.ph[ic]='0';
gotoxy(43,21);
}
void save()
{
of.open("detail.dat",ios::out | ios::app);
of.write((char *) &mf, sizeof mf);
of.close();
of.open("tid.dat",ios::out);
of<<tid;
of.close();
}
void out()
{
outprint();
int i=7;
of.open("detail.dat",ios::in);
if(of.fail())
{
gotoxy(30,i);
cprintf("Record not available");
}
else
{
while(of.read((char *) &mf, sizeof mf))
{
gotoxy(25,i);
cprintf("%s",mf.id);
gotoxy(34,i);
cprintf("%s",mf.na);
i++;
if(i==22)
{
getch();
i=7;
window();
outprint();
}
}
}
of.close();
}
void outprint()
{
textcolor(7);
gotoxy(25,5);
cprintf("Id");
gotoxy(34,5);
cprintf("Name");
for(int i=5;i<=23;i++)
{
for(int j=22;j<=75;j++)
{
if(j==29)
{
gotoxy(j,i);
cprintf("%c",179);
}
}
}
}
void search_student()
{
textcolor(7);
gotoxy(25,5);
cprintf("Enter Id :::: ");
gets(tid);
int c=0;
of.open("detail.dat",ios::in);
if(of.fail())
{
gotoxy(25,7);
cprintf("File not available");
}
else
{
while(of.read((char *) &mf, sizeof mf))
{
if(strcmp(mf.id,tid)==0)
{
window();
gotoxy(38,7);
cprintf("Student detail");
gotoxy(30,9);
cprintf("Id ::");
gotoxy(30,11);
cprintf("Name ::");
gotoxy(30,13);
cprintf("Father name ::");
gotoxy(30,15);
cprintf("Department ::");
gotoxy(30,17);
cprintf("City ::");
gotoxy(30,19);
cprintf("Phone no. ::");
gotoxy(36,9); //id
cprintf("%s",mf.id);
gotoxy(38,11); //name
cprintf("%s",mf.na);
gotoxy(45,13); //father name
cprintf("%s",mf.fna);
gotoxy(44,15); //department
cprintf("%s",mf.d);
gotoxy(38,17); //city
cprintf("%s",mf.ci);
gotoxy(43,19); //phone no.
cprintf("%s",mf.ph);
c=1;
}
}
of.close();
if(c==0)
{
gotoxy(25,7);
cprintf("Id not available");
}
}
}
void delete_student()
{
textcolor(7);
gotoxy(25,5);
cprintf("Enter Id you want to delete :::: ");
gets(tid);
textcolor(4);
gotoxy(42,21);
cprintf("D");
gotoxy(51,21);
cprintf("C");
textcolor(7);
gotoxy(43,21);
cprintf("elete");
gotoxy(52,21);
cprintf("ancel");
char o;
bk:
o=getch();
if(o=='d' || o=='D')
{
goto en;
}
else if(o=='c' || o=='C')
{
return;
}
else
{
goto bk;
}
en:
int c=0;
of.open("detail.dat",ios::in);
tf.open("temp.dat",ios::out | ios::app);
bf.open("backup.dat",ios::out | ios::app);
if(of.fail())
{
gotoxy(25,7);
cprintf("File not available");
}
else
{
while(of.read((char *) &mf, sizeof mf))
{
if(strcmp(mf.id,tid)==0)
{
gotoxy(40,7);
cprintf("Data deleted");
gotoxy(30,9);
cprintf("Id ::");
gotoxy(30,11);
cprintf("Name ::");
gotoxy(30,13);
cprintf("Father name ::");
gotoxy(30,15);
cprintf("Department ::");
gotoxy(30,17);
cprintf("City ::");
gotoxy(30,19);
cprintf("Phone no. ::");
gotoxy(36,9); //id
cprintf("%s",mf.id);
gotoxy(38,11); //name
cprintf("%s",mf.na);
gotoxy(45,13); //father name
cprintf("%s",mf.fna);
gotoxy(44,15); //department
cprintf("%s",mf.d);
gotoxy(38,17); //city
cprintf("%s",mf.ci);
gotoxy(43,19); //phone no.
cprintf("%s",mf.ph);
c=1;
bf.write((char *) &mf, sizeof mf);
}
else
{
tf.write((char *) &mf, sizeof mf);
}
}
bf.close();
tf.close();
of.close();
remove("detail.dat");
rename("temp.dat","detail.dat");
if(c==0)
{
gotoxy(25,22);
cprintf("Data not Found");
}
}
}
void modify_student()
{
textcolor(7);
gotoxy(25,5);
cprintf("Enter Id you want to Modify :::: ");
gets(tid);
gotoxy(30,7);
cprintf("You want to modify data to select option");
textcolor(4);
gotoxy(42,21);
cprintf("M");
gotoxy(51,21);
cprintf("C");
textcolor(7);
gotoxy(43,21);
cprintf("odify");
gotoxy(52,21);
cprintf("ancel");
char o;
bk:
o=getch();
if(o=='m' || o=='M')
{
goto en;
}
else if(o=='c' || o=='C')
{
return;
}
else
{
goto bk;
}
en:
window();
int c=0,ch=0;
of.open("detail.dat",ios::in);
if(of.fail())
{
gotoxy(25,9);
cprintf("File not available");
}
else
{
while(of.read((char *) &mf, sizeof mf))
{
if(strcmp(tid,mf.id)==0)
{
ch=1;
}
}
of.close();
if(ch==0)
{
gotoxy(25,9);
cprintf("Record not available");
getch();
return;
}
of.open("detail.dat",ios::in);
tf.open("temp.dat",ios::out | ios::app);
gotoxy(38,7);
cprintf("Enter new detail");
gotoxy(30,9);
cprintf("Id ::");
gotoxy(30,11);
cprintf("Name ::");
gotoxy(30,13);
cprintf("Father name ::");
gotoxy(30,15);
cprintf("Department ::");
gotoxy(30,17);
cprintf("City ::");
gotoxy(30,19);
cprintf("Phone no. ::");
gotoxy(36,9); //id
strcpy(mf2.id,tid);
cprintf("%s",mf2.id);
gotoxy(38,11); //name
// gets(mf2.na);
int ic=-1; //name
while(mf2.na[ic]!=13)
{
ic++;
mf2.na[ic]=getch();
cprintf("%c",mf2.na[ic]);
if((mf2.na[ic]>=65 && mf2.na[ic]<=90) || (mf2.na[ic]>=97
&& mf2.na[ic]<=122) || mf2.na[ic]==' ' || mf2.na[ic]==13 || mf2.na[ic]==8)
{
}
else
{
cout<<"b b";
ic-=1;
}
if(mf2.na[ic]==8 && ic>=1)
{
cout<<" b b";
ic-=2;
}
if(mf2.na[ic]==8 && ic==0)
{
cout<<" ";
ic-=1;
}
}
mf2.na[ic]='0';
gotoxy(45,13); //father name
// gets(mf2.fna);
ic=-1; //father name
while(mf2.fna[ic]!=13)
{
ic++;
mf2.fna[ic]=getch();
cprintf("%c",mf2.fna[ic]);
if((mf2.fna[ic]>=65 && mf2.fna[ic]<=90) ||
(mf2.fna[ic]>=97 && mf2.fna[ic]<=122) || mf2.fna[ic]==' ' || mf2.fna[ic]==13 ||
mf2.fna[ic]==8)
{
}
else
{
cout<<"b b";
ic-=1;
}
if(mf2.fna[ic]==8 && ic>=1)
{
cout<<" b b";
ic-=2;
}
if(mf2.fna[ic]==8 && ic==0)
{
cout<<" ";
ic-=1;
}
}
mf2.fna[ic]='0';
gotoxy(44,15); //department
// gets(mf2.d);
ic=-1; //department
while(mf2.d[ic]!=13)
{
ic++;
mf2.d[ic]=getch();
cprintf("%c",mf2.d[ic]);
if((mf2.d[ic]>=65 && mf2.d[ic]<=90) || (mf2.d[ic]>=97 &&
mf2.d[ic]<=122) || mf2.d[ic]==' ' || mf2.d[ic]==13 || mf2.d[ic]==8)
{
}
else
{
cout<<"b b";
ic-=1;
}
if(mf2.d[ic]==8 && ic>=1)
{
cout<<" b b";
ic-=2;
}
if(mf2.d[ic]==8 && ic==0)
{
cout<<" ";
ic-=1;
}
}
mf2.d[ic]='0';
gotoxy(38,17); //city
// gets(mf2.ci);
ic=-1; //city
while(mf2.ci[ic]!=13)
{
ic++;
mf2.ci[ic]=getch();
cprintf("%c",mf2.ci[ic]);
if((mf2.ci[ic]>=65 && mf2.ci[ic]<=90) || (mf2.ci[ic]>=97 &&
mf2.ci[ic]<=122) || mf2.ci[ic]==' ' || mf2.ci[ic]==13 || mf2.ci[ic]==8)
{
}
else
{
cout<<"b b";
ic-=1;
}
if(mf2.ci[ic]==8 && ic>=1)
{
cout<<" b b";
ic-=2;
}
if(mf2.ci[ic]==8 && ic==0)
{
cout<<" ";
ic-=1;
}
}
mf2.ci[ic]='0';
gotoxy(43,19); //phone no.
// gets(mf2.ph);
ic=-1; //phone no.
while(mf2.ph[ic]!=13)
{
ic++;
mf2.ph[ic]=getch();
cprintf("%c",mf2.ph[ic]);
if((mf2.ph[ic]>=48 && mf2.ph[ic]<=57) || mf2.ph[ic]==' ' ||
mf2.ph[ic]==13 || mf2.ph[ic]==8)
{
}
else
{
cout<<"b b";
ic-=1;
}
if(mf2.ph[ic]==8 && ic>=1)
{
cout<<" b b";
ic-=2;
}
if(mf2.ph[ic]==8 && ic==0)
{
cout<<" ";
ic-=1;
}
if(ic==9)
{
ic++;
char c;
bk3:
c=getch();
if(c==13)
{
break;
}
else
{
goto bk3;
}
}
}
mf2.ph[ic]='0';
textcolor(4);
gotoxy(43,21);
cprintf("S");
gotoxy(52,21);
cprintf("C");
textcolor(7);
gotoxy(44,21);
cprintf("ave");
gotoxy(53,21);
cprintf("ancel");
char o;
bk1:
o=getch();
if(o=='s' || o=='S')
{
goto en1;
}
else if(o=='c' || o=='C')
{
return;
}
else
{
goto bk1;
}
en1:
while(of.read((char *) &mf, sizeof mf))
{
if(strcmp(mf.id,tid)==0)
{
// gotoxy(40,7);
// cprintf("Data deleted");
tf.write((char *) &mf2, sizeof mf2);
c=1;
}
else
{
tf.write((char *) &mf, sizeof mf);
}
}
tf.close();
of.close();
remove("detail.dat");
rename("temp.dat","detail.dat");
if(c==0)
{
gotoxy(25,22);
cprintf("Data not Found");
}
}
}
void menu_main()
{
textcolor(4);
gotoxy(2,5);
cprintf("A");
gotoxy(2,8);
cprintf("S");
gotoxy(2,11);
cprintf("D");
gotoxy(2,14);
cprintf("M");
gotoxy(2,17);
cprintf("V");
gotoxy(2,20);
cprintf("E");
gotoxy(2,23);
cprintf("B");
textcolor(0);
gotoxy(40,1);
cprintf("Name List Generator");
gotoxy(3,5);
cprintf("dd Student");
gotoxy(3,8);
cprintf("earch Student");
gotoxy(3,11);
cprintf("elete Student");
gotoxy(3,14);
cprintf("odify Student");
gotoxy(3,17);
cprintf("iew Student");
gotoxy(3,20);
cprintf("xit");
gotoxy(3,23);
cprintf("ackup");
for(int i=1;i<=25;i++)
{
gotoxy(17,i);
cprintf("%c",179);
}
gotoxy(45,8);
cprintf("Welcome");
gotoxy(38,10);
cprintf("In Name List Generator");
gotoxy(27,12);
cprintf("Created by : Supriya Deshmukh.");
gotoxy(40,14);
cprintf("From : BCA 2nd year");
textcolor(7);
}
void white()
{
textbackground(WHITE);
for(int i=1;i<=2000;i++)
{
cprintf(" ");
}
textcolor(7);
}
void window()
{
textbackground(9);
for(int i=5;i<=23;i++)
{
for(int j=22;j<=75;j++)
{
gotoxy(j,i);
cprintf(" ");
}
}
textcolor(7);
}
void show_backup()
{
outprint();
int i=7;
of.open("backup.dat",ios::in);
if(of.fail())
{
gotoxy(30,i);
cprintf("Record not available");
getch();
return;
}
else
{
while(of.read((char *) &mf, sizeof mf))
{
gotoxy(25,i);
cprintf("%s",mf.id);
gotoxy(34,i);
cprintf("%s",mf.na);
i++;
if(i==20)
{
getch();
i=7;
window();
outprint();
}
}
}
of.close();
textcolor(4);
gotoxy(32,22);
cprintf("R");
gotoxy(46,22);
cprintf("e");
gotoxy(60,22);
cprintf("s");
textcolor(7);
gotoxy(33,22);
cprintf("emove All");
gotoxy(47,22);
cprintf("store All");
gotoxy(61,22);
cprintf("tore One");
gotoxy(45,22);
cprintf("R");
gotoxy(58,22);
cprintf("Re");
char c;
c=getch();
if(c=='R' || c=='r')
{
remove("backup.dat");
}
else if(c=='E' || c=='e')
{
of.open("detail.dat",ios::out | ios::app);
tf.open("backup.dat",ios::in);
while(tf.read((char *) &mf, sizeof mf))
{
of.write((char *) &mf, sizeof mf);
}
tf.close();
of.close();
remove("backup.dat");
}
else if(c=='s' || c=='S')
{
window();
int d=0;
gotoxy(30,7);
cprintf("Enter id for restore :: ");
gets(tid);
of.open("detail.dat",ios::out | ios::app);
tf.open("backup.dat",ios::in);
while(tf.read((char *) &mf, sizeof mf))
{
if(strcmp(tid,mf.id)==0)
{
window();
gotoxy(40,7);
cprintf("Data Restore");
gotoxy(30,9);
cprintf("Id ::");
gotoxy(30,11);
cprintf("Name ::");
gotoxy(30,13);
cprintf("Father name ::");
gotoxy(30,15);
cprintf("Department ::");
gotoxy(30,17);
cprintf("City ::");
gotoxy(30,19);
cprintf("Phone no. ::");
gotoxy(36,9); //id
cprintf("%s",mf.id);
gotoxy(38,11); //name
cprintf("%s",mf.na);
gotoxy(45,13); //father name
cprintf("%s",mf.fna);
gotoxy(44,15); //department
cprintf("%s",mf.d);
gotoxy(38,17); //city
cprintf("%s",mf.ci);
gotoxy(43,19); //phone no.
cprintf("%s",mf.ph);
of.write((char *) &mf, sizeof mf);
d=1;
break;
}
}
tf.close();
of.close();
if(d==0)
{
gotoxy(30,10);
cprintf("Record not available");
getch();
return;
}
of.open("temp.dat",ios::out | ios::app);
tf.open("backup.dat",ios::in);
while(tf.read((char *) &mf, sizeof mf))
{
if(strcmp(tid,mf.id)==0)
{
}
else
{
of.write((char *) &mf, sizeof mf);
}
}
tf.close();
of.close();
remove("backup.dat");
rename("temp.dat","backup.dat");
getch();
}
else
{
goto bk;
}
bk:
}
void admin_make()
{
window();
textcolor(7);
gotoxy(39,7);
cprintf("Make Admin Account");
gotoxy(30,9);
cprintf("Admin Id :: ");
gotoxy(30,11);
cprintf("Admin Password :: ");
textcolor(4);
gotoxy(43,14);
cprintf("S");
gotoxy(50,14);
cprintf("C");
textcolor(7);
gotoxy(44,14);
cprintf("ave");
gotoxy(51,14);
cprintf("ancel");
gotoxy(42,9); //id
gets(af.id);
gotoxy(48,11); //password
// gets(af.pass);
int ic=-1;
while(af.pass[ic]!=13)
{
ic++;
af.pass[ic]=getch();
cprintf("*");
if(af.pass[ic]==8 && ic>=1)
{
cout<<"b bb b";
ic-=2;
}
if(af.pass[ic]==8 && ic==0)
{
cout<<"b b";
ic-=1;
}
}
af.pass[ic]='0';
gotoxy(43,14);
char o;
bk:
o=getch();
if(o=='S' || o=='s')
{
goto en;
}
else if(o=='C' || o=='c')
{
exit(0);
}
else
{
goto bk;
}
en:
of.open("admin.dat",ios::out);
of.write((char *) &af, sizeof af);
of.close();
textcolor(7);
}
void admin_log()
{
window();
textcolor(7);
gotoxy(45,7);
cprintf("Log In");
gotoxy(30,9);
cprintf("Admin Id :: ");
gotoxy(30,11);
cprintf("Admin Password :: ");
textcolor(4);
gotoxy(42,14);
cprintf("L");
gotoxy(50,14);
cprintf("C");
textcolor(7);
gotoxy(43,14);
cprintf("ogin");
gotoxy(51,14);
cprintf("ancel");
gotoxy(42,9); //id
gets(af.id);
gotoxy(48,11); //password
// gets(af.pass);
int ic=-1;
while(af.pass[ic]!=13)
{
ic++;
af.pass[ic]=getch();
cprintf("*");
if(af.pass[ic]==8 && ic>=1)
{
cout<<"b bb b";
ic-=2;
}
if(af.pass[ic]==8 && ic==0)
{
cout<<"b b";
ic-=1;
}
}
af.pass[ic]='0';
gotoxy(43,14);
char o;
bk:
o=getch();
if(o=='L' || o=='l')
{
goto en;
}
else if(o=='C' || o=='c')
{
exit(0);
}
else
{
goto bk;
}
en:
int c=0;
of.open("admin.dat",ios::in);
while(of.read((char *) &af1, sizeof af1))
{
if(strcmp(af.id,af1.id)==0 && strcmp(af.pass,af1.pass)==0)
{
c=1;
}
}
of.close();
if(c==0)
{
gotoxy(35,17);
cprintf("Id not matched");
getch();
exit(0);
}
textcolor(7);
}
};
use obj1,obj2;
clrscr();
obj1.white();
obj1.menu_main();
static log;
if(log==0)
{
of.open("admin.dat",ios::in);
if(of.fail())
{
of.close();
obj1.admin_make();
}
else
{
of.close();
obj1.admin_log();
log++;
}
}
obj1.white();
obj1.menu_main();
// obj1.checkid();
//strip
char trip[100]="This project is created by supriya Deshmukh.";
//text print
int inc=1,l=1,le,che,rou=0,st=0;
for(int k1=0,len=1;trip[k1]!='0';k1++)
{ //length of text
len++;
}
le=len; ///strip
while(1) //infinite loop
{
char o;
bk:
if(kbhit())
{
o=getch();
textbackground(7);
textcolor(0);
if(o=='A' || o=='a')
{
gotoxy(22,4);
cprintf("ADD student");
textcolor(7);
obj1.window();
obj1.add_menu();
obj1.add_student();
bk1:
o=getch();
if(o=='s' || o=='S')
{
obj1.save();
}
else if(o=='C' || o=='c')
{
main();
}
else
{
goto bk1;
}
main();
}
else if(o=='s' || o=='S')
{
gotoxy(22,4);
cprintf("Search student");
textcolor(7);
obj1.window();
obj1.search_student();
getch();
main();
}
else if(o=='B' || o=='b')
{
gotoxy(22,4);
cprintf("Backup student");
textcolor(7);
obj1.window();
obj1.show_backup();
main();
}
else if(o=='D' || o=='d')
{
gotoxy(22,4);
cprintf("Delete student");
textcolor(7);
obj1.window();
obj1.delete_student();
getch();
main();
}
else if(o=='M' || o=='m')
{
gotoxy(22,4);
cprintf("Modify student");
textcolor(7);
obj1.window();
obj1.modify_student();
main();
}
else if(o=='V' || o=='v')
{
gotoxy(22,4);
cprintf("View student");
textcolor(7);
obj1.window();
obj1.out();
getch();
main();
}
else if(o=='E' || o=='e')
{
exit(0);
}
else
{
goto bk;
}
}
textbackground(9); //strip backgroud
for(int bs=1;bs<=79;bs++)
{
gotoxy(bs,25);
cprintf(" ");
}
che=inc+len; //length checking
if(che>79) //length overflow than less length
{
le--;
}
textcolor(7);
gotoxy(inc,25);//print text
for(k1=st;k1<le;k1++)
{
cprintf("%c",trip[k1]);
}
if(st>0) //left text move
{
st--;
}
if(st==0) //move text value increment
{
inc++;
}
if(inc==79)
{
inc=1;
le=len;
rou=1;
st=le-1;
} //reset position of start
delay(100);
//l++;
}
getch();
}
Thank you
Presented By
Supriya Deshmukh
Bachelor Of Computer Application, 2nd
year
College- Dezyne E’cole College

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

Supriya Deshmukh, BCA 2nd year, Dezyne E'cole College