Page 404 - C++
P. 404

break;
                        }
                      offset+=sizeof(sf);
                  }
                if (flag==1)
                {
                        int fine;
                        char rep;
                        cout<<"\n\n\t Is There A Fine??";
                        cin>>rep;
                        if(rep=='y'||rep=='Y')
                        {
                               cout<<"\n\n\t Enter the fine";
                               cin>>fine;
                        }
                        sf.upfee();
                        file3.seekg(offset,ios::beg);
                        file3.write((char*)&sf,sizeof(sf));
                        cout<<"\n\n\t FEE Paid...............";
                        getch();

                }
                else
                {
                cout<<"\n\t Please check your inputs..........";
                getch();
                }
                file.close();
                file2.close();
                file4.close();

         }

         //**********FUNCTION FOR DEFAULTER'S LIST******************

         void DEFAULTER_LIST()
         {
                clrscr();
                int clas,anum,t;
                char section;
                cout<<"\n\n\t Enter The Class of the Student    : ";
                cin>>clas;
                cout<<"\n\n\t Enter the section of the Student  : ";
                cin>>section;
                section=toupper(section);
                fstream file, file3;
                file.open("student.dat", ios::in|ios::binary);

                cout<<"\n\t Enter term     :  ";
                cin>>t;
                clrscr();
                gotoxy(20,5);
                cout<<"DEFAULTER\'s LIST";
                gotoxy(15,2);
   399   400   401   402   403   404   405   406   407   408   409