Page 405 - C++
P. 405
cout<<"ABC MODEL SCHOOL";
gotoxy(3,7);
cout<<"Term "<<t;
gotoxy(3,8);
cout<<"Class "<<clas;
gotoxy(44,8);
cout<<"Section "<<section;
gotoxy(3,9);
cout<<"Admission no";
gotoxy(22,9);
cout<<"Student\'s Name";
gotoxy(40,9);
cout<<"Father\'s Name";
int r=10;
while(file.read((char *)&s, sizeof(s)))
{
if(s.clcheck(clas,section))
{
file3.open("Sfee.dat",ios::in|ios::binary);
anum=s.retno();
while(file3.read((char *)&sf,sizeof(sf)))
{
if (sf.retad()==anum && sf.retterm()==t && sf.retpaid()=='N')
{
int admno=s.retno();
gotoxy(3,r);
cout<<admno;
gotoxy(22,r);
cout<<s.name;
gotoxy(40,r);
cout<<s.fathername;
r++;
}
}
}
file3.close();
}
file.close();
getch();
}
//***********FUNCTION FOR QUERY ON STUDENT*****************
void Query1()
{
clrscr();
char rep;
int admno;
fstream file2;
do
{ clrscr();
file2.open("student.dat", ios::in|ios::binary);
gotoxy(10,9);