C Project
C Project
Syste
m
1
*/
PROGRAM
do
main_menu();
fflush(stdin);
ch=getchar();
switch(ch)
case
'c':
case
'C':
creation();
break;
case 'a':
case 'A':
creation();
break;
case 'r':
case 'R':
report_printing() ;
break;
case 'e':
case 'E':
break;
}
}
while((ch!='e')&&(ch!='E'));
}
/*DQ000 DO 000 0 ODD DO ODD DODO DO DO FUNCTIONS 000000000000000000000000000*/
void block()
{
clrscr();
highvideo();
sound(300);
{
gotoxy(i,1);
cout"B";
sound(300+i*20);
delay(8);
}
for(i=2;i<24;i++)
{
gotoxy(40,i);
cout"B";
sound(300+i*20);
delay(8);
}
for(i=40;i>=l;i--)
{
gotoxy(i,24);
cout"B";
sound(300+i*20);
delay(8);
}
for(i=23;i>=2;i--)
{
gotoxy(l.i);
3
cout"B";
sound(3OO+i*2O);
delay(8);
}
delay(100);
nosound();
}
/*DOOODDOOODOaDOODOaDODOODODD PROCEDURE
ODODODOODODDDaoaDaDODODODDO*/
void blockl()
{
sound(300);
for(i=40;i>=1;i--)
{
gotoxy(i,5);
cout"B";
sound(3OO+i*2O);
delay(8);
}
delay(100);
nosound();
}
/*DDnDDDQDDDDDDDDDDDDDDDDDDD
PROCEDURE
void numword(int x)
{
int num,j,t,k;
char a[21][12],b[ll][10],choice;
strcpy(a[1],"One");
strcpy(a[2],"Two");
strcpy(a[3],"Three");
strcpy(a[4],"Four");
strcpy(a[5],"Five");
strcpy(a[6],"Six");
strcpy(a[7],"Seven");
strcpy(a[8],"Eight");
strcpy(a[9],"Nine");
strcpy(a[10],"Ten");
strcpy(a[11],"Eleven");
strcpy(a[12],"Twelve");
strcpy(a[13],"Thirteen");
strcpy(a[14],"Fourteen");
strcpy(a[15],"Fifteen");
strcpy(a[16],"Sixteen");
strcpy(a[17],"Seventeen");
strcpy(a[18],"Eighteen");
strcpy(a[19],"Nineteen");
strcpy(b[2],"Twenty");
strcpy(b[3],"Thirty");
strcpy(b[4],"Fourty");
strcpy(b[5],"Fifty");
strcpy(b[6],"Sixty");
strcpy(b[7],"Seventy");
strcpy(b[8],"Eighty");
strcpy(b[9],"Ninety");
DDDDDDDDDDDDDDDDDDDDDDaDDDn*/
num=x;
if(num==0)
{
cprintf("ZERO");
goto a10;
}
if((num<1000)&&(num>99)&&(num!=0))
{
j=num/100;
num=num%100;
cprintf(a[j]);
COUt"HUNDRED";
}
if((num<lOO)&&(num!=O))
{
if(num>19)
{
j=num/10;
k=num%10;
cprintf(b[j]);
if(k!=O)
cprintf(a[k]);
}
else
cprintf(a[num]);
}
a10: ;
}
/*nnQODODoaaa0000000000 noon
void displ()
{
l=strlen(a[j]);
x=((40-l)/2)+l;
gotoxy(x,r);
for(p=0;p<l;p++)
{
couta[j][p];
delay(15);
}
}
DO PROCEDURE
000000000000000000000000000*/
void introduction()
block();
gotoxy(13,4);
PROCEDURE
ODGODDaDDODDDDDODODODDaDODO*/
cprintf("INTRODUCTION");
gotoxy(13,5);
cpri ntf ("______________________") ;
gotoxy(9,6);
cprintf("The software package entitled");
gotoxy(4,8);
cprintf("EXAMINATION
SYSTEM");
gotoxy(4,10);
cprintf("has been developed to prepare");
gotoxy(4,12);
cprintf("the marksheet of all those");
gotoxy(4,14);
cprintf("students who are appearing or have");
gotoxy(4,16);
cprintf("appeared in Secondary School Exam");
gotoxy(4,18);
cprintf("or senior School Certificate Exam");
gotoxy(4,20);
cprintf("of central Board of Secondary Edu-");
gotoxy(4,22);
cprintf("-cation");
textcolor(WHlTE+BLlNK);
gotoxy(25,22);
cprintf("Please wait....");
textcolor(WHITE);
delay(1000);
}
/*DanDDDnDDDDnDDnDDDOQDDDDQDD
PROCEDURE
ODDDDDDDDDDnDDDDDDDDDDDODDD*/
void introduction2()
{
block();
gotoxy(9,4);
cprintf("DESCRIPTION OF THE PACKAGE");
gotoxy(9,5);
Cprintf("DDDDDDDDDDDDDDDDDDDDDDDDDD");
gotoxy(8,8);
cprintf("\nThe software package enables us");
gotoxy(4,10);
cprintf("to prepare the marksheet by giving");
gotoxy(4,ll);
cprintf("the general information of the stu");
gotoxy(4,12);
cprintf("dent as well as the optional subject");
gotoxy(4,13);
cprintf("and marks secured by him in all the");
gotoxy(4,14);
cprintf("subjects and practical exams.");
gotoxy(4,19);
cprintf(" ");
gotoxy(4,22);
cprintf(" ");
gotoxy(4,24) ;
textcolor(WHITE+BLINK);
cprintf(" Press any key to continue....");
textcolor(WHiTE);
getch();
}
/*DDDDDDnDDDDDDDDDDDDDDDDnDDD PROCEDURE
DDDDQDDDODDDnnQOQDanDDDDnDn*/
int check()
{
int z;
j:
gotoxy(16,12);
cin>>z;
stufile.open("student.dat",ios::in);
stufile.seekg(0);
stufile.read((char*)&stu,sizeof(sturec));
stufile.close() ;
stufile.open("student.dat" ,ios: :app);
return(z);
}
/*DDaDDDDDDDDaDDDDDDDDDnnDDDD PROCEDURE
DDDDDnDDDDDDDDDDDDDDDDDDDDD*/
void first_screen()
strcpy(a[1], " A SOFTWARE PACKAGE");
strcpy(a[2], "ON");
strcpy(a[3], "EXAMINATION
SYSTE M") ;
strcpy(a[4], " DDDQDnDDDDDDQDDDDQDDDDDDDDDDDDDDDDD");
strcpy(a[5], "DEVELOPED BY");
strcpy(a[6], RUPAL SRIVASTAV");
strcpy(a[7], TANVI BHALLA");
r=4;
highvideo();
for(j=1;j<10;j++)
{
disp1();
delay(15);
if((j==2)||(j==3)||(j==4))
textcolor(WHlTE+BLiNK);
else
textcolor(WHITE);
r=r+2;
if(j==5)
r=r+2;
}
textcolor(WHlTE+BLlNK);
gotoxy(13,25);
cprintf("PLEASE WAIT.....");
textcolor(WHITE);
normvideo();
delay(3000);
}
/*DDnanaDDDDDDDDDDnDDDDaDDDnD PROCEDURE DaDDDaDDDDDDDDDDDDDDDDDDDDD*/
void main_menu()
{
b1ock();
for(i=2;i<40;i++)
{
gotoxy(i,5);
cout"D";
delay(8);
7
}
r=3;
j=1;
strcpy(a[1],"
MAIN MENU
") ;
displ();
textbackground(BLACK);
textcolor(WHITE);
strcpy(a[2]," OPTION
CHOICE");
strcpy(a[3], "Create the student biodata file <C>");
strcpy(a[4], "Append biodata of a new student <A>");
strcpyCa[5], "Preperation of report cards <R>");
strcpy(a[6], "Exit to prompt
<E>");
strcpy(a[7], "Enter your choice(C/A/R/E) ")
r=9;
for(j=2;j<=7;j++)
{
disp1();
delay(25);
r=r+2;
if(r==6)
r=r+2;
}
}
void line()
{
for(i=l;i<=80;i++)
cout'B';
}
textmode(c80);
r=1;
for(j=l;j<=3;j++)
{
disp2();
r+=1;
}
gotoxy(l,2);
cprintf("S.no.009902512");
8
gotoxy(l,5);
cprintf("NAME
");
gotoxy(60,5);
cprintf("ROLL NO.
");
qotoxy(l,6);
line();
gotoxy(l.10);
line();
k=14;
r=5;
col=l;
ver_line();
col=6;
ver_line();
col=31;
ver_line();
for(i=32;i<7;i++)
{
gotoxy(i,8);
cout"D";
col=74;
ver_line();
col=80;
ver_line();
qotoxy(1,20);
lineO;
k=12;
r=7;
col=36;
ver_line();
col=41;
ver_line();
col=47;
ver_line();
char division[5];
strcpyCdivision,"Pass");
gotoxy(ll,12);
coutstu.sno;
gotoxy(9,5);
cprintf(stu.name);
gotoxy(74,5);
coutstu.rno;
gotoxy(8,12);
coutstu.op_subl;
gotoxy(8,13);
cout<<stu.op_sub2;
for(i=1;i<6;i++)
{
gotoxy(33,10+i);
coutstu.mark[i];
gotoxy(38,10+i);
if(stu.prac[i]!=0)
coutstu. prac[i ];
gotoxy(44,10+i);
coutstu.prac[i]+stu.mark[i] ;
k=stu.prac[i]+stu.mark[i];
if(k>=90)
9
strcpy(stu.gd[i],"Al");
else if(k>=80)
strcpy(stu.gd[i],"A2");
else if(k>=70)
strcpy(stu.gd[i],"Bl");
else if(k>=60)
strcpy(stu.gd[i],"B2");
else if(k>=50)
strcpy(stu.gd[i],"Cl");
else if(k>=40)
strcpy(stu.gd[i],"c2");
else if(k>=33)
strcpy(stu.gd[i],"Dl");
if(k<33)
strcpy(division,"Fail");
gotoxy(48,10+i);
numword(stu.prac[i]+stu.mark[i]);
gotoxy(77,10+i);
coutstu.gd[i];
tot=tot+k;
}
for(int a=6;a<=8;++a)
{
gotoxy(77,10+a);
coutstu.gd[a];
}
gotoxy(49,21);
coutdivision;
getdate(&d);
gotoxy(9,24);
pri ntf("%d-%d-%d",d.da_day,d.da_mon,d.da_year) ;
textcolor(WHITE+BLlNK);
gotoxy(27,25);
cprintf("Press any key to continue....");
getch();
textcolor(WHITE);
textmode(c40);
}
gotoxy(2,7);
cprintf("code");
gotoxy(13,7);
cprintf("Subject");
gotoxy(46,7);
cprintf("Marks Obtained");
gotoxy(32,9);
cprintf("Theo");
gotoxy(37,9);
cprintf("Prac");
gotoxy(42,9);
cprintf("Total");
gotoxy(55,9);
cprintf("Total in Words");
gotoxy(75,9);
cprintf("Grade");
gotoxy(76,8);
10
cprintf("Pos.");
gotoxy(3,11);
cprintf("301");
gotoxy(3,l2);
cprintf("302");
gotoxy(3,13);
cprintf("041");
gotoxy(3,14);
cprintf("042");
gotoxy(3,15);
cprintf("043");
gotoxy(3,16);
cprintf("500");
gotoxy(3,17);
cprintf("5O2");
gotoxy(3,18);
cprintf("503");
gotoxy(8,ll);
cprintf("ENGLISH CORE");
gotoxy(8,14);
cprintf("PHYSICS");
gotoxy(8,15);
cprintf("CHEMISTRY");
gotoxK8,16);
cprintf("WORK EXPERIENCE");
gotoxy(8,17);
cprintf("PHY.& HEALTH EDUCATION");
gotoxy(8,18);
cprintf("GENERAL STUDIES");
gotoxy(40,21);
cprintf("Result");
gotoxy(l,23);
cprintf("New Delhi");
gotoxy(l,24);
cprintf("Dated:");
gotoxy(69,23);
cprintf("controller");
gotoxy(65,24);
cprintf("of Examinations");
}
/*DOODDDODDDOnDDOOODDODDODOOD PROCEDURE
nqnnaDDDDDDDDDnDDDDDDnnnnDD*/
void print_report()
{
struct date d;
form_12();
void creation()
if((ch=='c')||(ch=='C'))
stufile.openCstudent.dat",ios: :out) ;
textmode(C40);
11
biock();
blockl();
i=3;
j=1;
textbackground(WHITE);
textcolor(BLACK);
strcpy(a[l],"STUDENT INFORMATION");
strcpy(a[2],"aDDDDDDDDDDDDDDDDDD");
disp1();
textbackground(BLACK);
textcolor(WHiTE);
gotoxy(5,10);
cprintf("Name : ");
gotoxy(5,l2);
cprintf("Roll no : ");
gotoxy(5,14);
cprintf("Class : ");
gotoxy(5,21);
cprintf("ENtER THE NAME OF THE STUDENT");
gotoxy(16,10);
cinna;
gotoxy(5,21);
cprintf("ENTER THE
gotoxy(16,12);
ROLL
NO.
OF
THE
STUDENT");
if((ch=='a')||(ch=='A'))
{
stufile.openCstudent.dat" ,ios: :app) ;
rono=check();
}
// else
cinrono;
stu.rno=rono;
strcpy(stu.name,na);
gotoxy(5,21);
cprintf("ENTER THE CLASS OF THE STUDENT
");
gotoxy(16,14);
cinstu.klass;
clrscr();
gotoxy(5,10);
cprintf("ENTER THE OPTIONAL SUBJECT AMONG");
gotoxy(5,12);
cprintf("HINDI and COMPUTER SCIENCE");
gotoxy(5,14);
cprintt("Press <H> for HINDI");
gotoxy(5,15);
cprintf("<C> for COMPUTER SCIENCE");
gotoxy(5,19);
cprintf("ENTER YOUR CHOICE : ");
fflush(stdin);
ch=getchar();
if((ch=='h')||(ch=='H'))
strcpy(stu.op_subl,"HINDI CORE" );
else
strcpy(stu.op_subl,"COMPUTER SCIENCE");
12
clrscr();
gotoxy(5,10);
printf("ENTER THE OPTIONAL SUBJECT AMONG : ");
gotoxy(5,12);
cprintf("MATHEMATICS and BIOLOGY");
gotoxy(5,14);
cprintf("Press <M> for MATHEMATICS");
gotoxy(5,17);
cprintf("<B> for BIOLOGY");
gotoxy(5,19);
cprintf("ENTER YOUR CHOICE
:
");
fflush(stdin);
ch=getchar();
if((ch=='m')||(ch=='M'))
strcpy(stu.op_sub2,"MATHEMATICS");
else
strcpy(stu.subj[5],"CHEMISTRY ");
j:
clrscr();
gotoxy(3,10);
cout" PLEASE
ENTER
";
gotoxy(3,ll);
cout"MARKS OF
";
cputs(stu.subj[1]);
cout" OUT OF 100 :
";
cinstu.mark[l];
if(stu.mark[l]>100)
{
gotoxy(3,14);
COUt"WRONG
ENTRY,
INPUT AGAIN.";
delay(1000);
goto j;
}
stu.prac[l]=0;
b:
if(strcmp(stu.op_subl,"HINDI CORE")==0)
{
clrscr();
gotoxy(3,8);
cprintf("MARKS OF ");
cputs(stu.subj[2]);
cprintf(" OUT OF 100 :
");
cinstu.mark[2] ;
if(stu.mark[2]>100)
{
gotoxy(3,12);
cprintf("WRONG ENTRY,INPUT AGAIN");
delay(1000);
goto b;
}
stu.prac[2]=0;
}
13
else
{
clrscr();
gotoxy(l,8);
cprintf("MARKS OF ");
cputs(stu.subj[2]) ;
cprintf(" OUT OF 70 :
cinstu.mark[2];
if(stu.mark[2]>70)
{
");
gotoxy(3,11);
cprintf("WRONG
ENTRY,
INPUT AGAIN.");
del ay(1000);
goto b;
}
c:
gotoxy (1,14);
cprintf("ENTER PRACTICAL MARKS OUT OF 30 :
cinstu.prac[2];
if(stu.prac[2]>30)
{
");
gotoxy(3,15);
Cprintf("WRONG
ENTRY,
INPUT AGAIN.");
delay(1000);
goto c;
}
}
d:
if(strcmp(stu.op_sub2,"MATHEMATICS")==0)
{
clrscr();
gotoxy(3,8);
cprintf("MARKS OF ");
cputs(stu.subj[3]);
cprintf(" OUT OF 100 :
cinstu.mark[3];
if(stu.mark[3]>100)
");
{
gotoxy(3,ll);
cprintf("WRONG
ENTRY,
INPUT AGAIN.");
delay(lOOO);
goto d;
}
stu.prac[3]=0;
}
else
{
clrscr();
gotoxy(3,8);
cprintf("MARKS OF ");
cputs(stu.subj[3]);
cprintf(" OUT OF 70 :
");
cinstu.mark[3];
if(stu.mark[3]>70)
14
{
gotoxy(3,ll);
cprintf("WRONG ENTRY,
INPUT AGAIN.");
delay(lOOO);
goto d;
}
e:
gotoxy(3,14);
cprintf("PRACTICAL
cinstu.prac[3] ;
if(stu.prac[3]>30)
{
gotoxy(3,16);
cprintf("WRONG
delay(1000);
goto e;
}
}
MARKS OUT OF
30
");
f:
clrscr();
gotoxy(3,8);
cprintf("MARKS OF ");
cputs(stu.subj[4]);
cprintf(" OUT OF 70 :
cinstu.mark[4] ;
if(stu.mark[4]>70)
");
{
gotoxy(3,ll);
cprintf("WRONG
ENTRY,
INPUT AGAIN.");
delay(lOOO);
goto f;
}
g:
gotoxy(3,14);
cprintf("PRACTICAL
cinstu.prac[4] ;
if(stu.prac[4]>30)
{
gotoxy(3,16);
Cprintf("WRONG
MARKS OUT OF
ENTRY,
INPUT
30
")
AGAIN.")
del ay(1000);
goto g;
}
h:
clrscr();
gotoxy(3,8);
cprintf("MARKS OF ") ;
cputs(stu.subj[5]);
cprintf(" OUT OF 70 :
cinstu.mark[5] ;
if(stu.mark[5]>70)
");
{
gotoxy(3,ll);
15
cprintf("WRONG
delay(lOOO);
goto h;
}
l :
gotoxy(3,14);
cprintf("PRACTICAL MARKS
cinstu.prac[5];
if(stu.prac[5]>30)
{
OUT OF
30
");
gotoxy(3,16);
cprintf("WRONG
ENTRY,
INPUT AGAIN.");
delay(1000);
goto i;
}
clrscr();
gotoxy(l,8);
cprintf("GRADE
cinstu.gd[6];
OF
WORK
EXPERIENCE
");
gotoxy(l,12);
cprintf("GRADE OF PHYSICAL HEALTH & EDUCATION :");
cinstu.gd[7];
gotoxy(l,16);
cprintf("GRADE
OF GENERAL STUDIES
: ");
cinstu.gd[8];
clrscr();
gotoxy(l,ll);
cprintf("PREPARATION OF THE REPORT IS IN PROGRESS");
textcolor(WHITE+BLINK);
gotoxy(l,13);
cprintf("PLEASE WAIT......");
delay(5000);
textcolor(white);
print_report();
stufi1e.write((char*)&stu,si zeof(sturec));
stufile.close() ;
}
/*aDaDDDDDDnnDDnnnDDnanDaDDDD PROCEDURE
DDDDDDnDDDDDDDDDDDaDDDDDDDD*/
void ind_report()
{
int flag;
stufile.open(student.dat" , ios: :in) ;
stufile.seekg(0);
block();
x=0;
gotoxy(8,3);
cprintf("Roll Number :");
gotoxy(20,3);
cprintf("Name
:");
stufile.read((char*)&stu,sizeof(sturec));
while(!stufile.eof())
{
gotoxy(10,5+x);
16
coutstu. rno;
gotoxy(16,5+x);
cprintf(stu.name) ;
x=x+1;
if(x==20)
{
gotoxy(10,22);
cprintf("Press any key to continue....");
getch();
x=0;
gotoxy(8,3);
cprintf("Roll
No
:");
gotoxy(20,3);
cprintf("Name
:");
}
stufile.read((char*)&stu,sizeof(sturec));
}
stufile.close();
gotoxy(10,22);
cprintf("Press any key to continue....");
getch();
stufile.open("student.dat",ios::in);
stufile.seekg(0);
block();
gotoxy(5,10);
cprintf("Enter the roll
no.
of the student");
cinrollno;
flag=l;
stufile.read((char*)&stu,sizeof(sturec)); whi1e((!
stufi1e.eof())&&(f1ag))
{
if(rol1no==stu.rno)
flag=0;
else
stufile.read((char*)&stu,sizeof(sturec));
}
if(flag==l)
{
gotoxy(5,12);
cprintf("record not found.");
delay(2000);
}
else
print_report();
stufile.close();
}
/*000000000000000000000000000
OODOODODDODDODDOODOOODODDOO*/
PROCEDURE
void all_report()
{
stufile.open("student.dat",ios::in);
stufile.seekg(0);
stuf i1e.read((char*)&stu,si zeof(sturec));
while(!stufile.eof())
{
block();
17
gotoxy(3,12);
cprintf("Preparing report of");
cputs(stu.name);
textcolor(WHITE+BLINK);
got9xy(3,14);
cprintf("Piease wait___");
delay(2000);
textcolor(WHITE);
print_report();
stufile.read((char*)&stu,sizeof(sturec));
}
stufile.close();
}
/*ODDDOODODOODDODOODODOODODOD PROCEDURE
ODOODDODDODDODDDOODDODOOOOD*/
void report_printing()
{
do
{
blockO;
for(i=2;i<=39;i++)
gotoxy(i,5);
cout"=";
delay(8);
}
r=3;
j=i;
strcpy(a[l]."REPORT MENU");
displ();
textbackground(BLACK);
textcolor(WHlTE);
strcpy(a[2] "OPTION
CHOICE");
strcpy(a[3], "Prepare individual
report card
<I>");
strcpy(a[4], "Prepare all the report card
<A>");
strcpy(a[5], "prepare merit list
<M>");
strcpy(a[6], "Prepare cross list
<C>");
strcpy(a[7], "Return to main menu
<Q>");
strcpy(a[8], "Enter your choice(I/A/M/C/Q)
:
");
r=9;
for(j=2;j<=8;j++)
{
displ();
delay(25);
r=r+2;
if(r==5)
r=r+2;
}
fflush(stdin) ;
ch=getchar();
switch(ch)
{
case'I':
case'i':
ind_report()
break;
case'A':
case'a':
18
all_report()
break;
case 'M':
case 'm':
merit_list();
break;
case'C':
case'c':
cross_list();
break;
}
}
while((ch!='q')&&(ch!='Q'));
}
/*DDDDDDDDDDDDDDDDDnDDDDDDDDD PROCEDURE
nDDnDDODDDnDDDnDDDDDDDDDDDD*/
void merit_list()
{
clrscr();
sturec ar[20],temp;
int tot[20];
textmode(C40);
textbackground(BLACK);
textcolor(WHITE);
int i,j,k;
stufile.openCstudent.dat" ,ios: :in) ;
i=0;
stufile.seekq(0);
stufile.read((char*)&stu,sizeof(sturec)) ;
whi1e(!stufi1e.eof())
{
ar[i]=stu;
tot[i]=0;
for(k=l;k<6;k++)
tot[i]+=stu.mark[k]+stu.prac[k];
stufile.read((char*)&stu,sizeof(sturec));
i++;
}
stufile.close();
i--;
int tt;
for(j=0;j<i;j++)
for(k=j+l;k<=i;k++)
{
if(tot[j]<tot[k])
{
temp=ar[j];
ar[j]=ar[k];
ar[k]=temp;
tt=tot[j];
tot[j]=tot[k];
tot[k]=tt;
}
}
gotoxy(3,l);
cout"Sl.No.
";
gotoxy(10,l);
19
gotoxy(12,2+k);
printf("%4d",ar[k].rno);
gotoxy(20,2+k);
cpri ntf(ar[k].name);
gotoxy(35,2+k);
printf("%2d",tot[k]);
}
gotoxy(3,24);
cout"Press any key to continue......";
getch();
}
/*DDDDDDDDDDDnDDaDDDDDDDDnDDDD
PROCEDURE
void cross_list()
{
clrscr();
textmode(c80);
textbackground(BLACK);
textcolor(WHITE);
stufile.openCstudent.dat" ,ios: :in);
int i=3;
gotoxy(l,l);
cout"R.No.
gotoxy(7,l);
cout"Name
gotoxy(27,l);
cout"Eng.
gotoxy(32,l);
";
";
";
cout"Hin./Comp.
:
gotoxy(42,l);
cout"Bio./Maths
:
gotoxy(52,l);
cout"Phy.
:
";
gotoxy(58,l);
cout"Chem.
:
";
gotoxy(64,l);
cout"W.Exp :
";
gotoxy(70,l);
cout"P.T.
:
";
gotoxy(76,l);
cout"G.Ed
";
";
";
stufi1e.seekg(0);
stufi1e.read((char*)&stu,sizeof(sturec));
whi1e(!stufi1e.eof())
{
gotoxy(1,i);
coutstu.rno;
gotoxy(7,i);
coutstu.name;
20
gotoxy(27,i);
coutstu.mark[l]+stu.prac[l] ;
gotoxy(34,i);
coutstu.mark[2]+stu.prac[2];
gotoxy(44,i);
coutstu.mark[3]+stu.prac[3];
gotoxy(52,i);
coutstu.mark[4]+stu.prac[4] ;
gotoxy(58,i);
coutstu.mark[5]+stu.prac[5];
gotoxy(64,i);
coutstu.gd[6];
gotoxy(70,i);
coutstu.gd[7];
gotoxy(76,i);
cout<<stu.gd[8];
stufile.read((char*)&stu,sizeof(sturec));
i++;
}
stufile.close();
gotoxy(3,24);
cout"Press any key to continue..............";
getch();
textmode(c40);
}
21