Page 406 - C++
P. 406
cout<<" Enter the Admno of the Student";
cin>>admno;
while(file2.read((char *)&s, sizeof(s)))
{
if(s.retno()==admno)
{
s.display();
getch();
}
}
cout<<"\n\n\t Do U Want to enter More??";
cin>>rep;
file2.close();
}while(rep=='y' || rep=='Y');
}
//***********FUNCTION FOR QUERY ON FEE*********************
void Query2()
{
clrscr();
int clas;
char rep;
do
{
clrscr();
gotoxy(10,8);
cout<<" Enter the class of the student";
cin>>clas;
fstream file("fee.dat",ios::in|ios::binary);
while(file.read((char *)&f, sizeof(f)))
{
if(sf.cl == clas)
{
f.displayd();
}
}
cout<<"\n\n\tDo U Want to Enter more??";
cin>>rep;
file.close();
}while(rep== 'y'|| rep=='Y');
}
//*********************************************************
//***********FUNCTION FOR SUB MENU OF STUDENT**************
//*********************************************************
void stud_menu()
{
int ch1;
do