intcheck(charac[]) { returnstrcmp(area,ac) } }; Q3. Write afunctionTRANSFER()inC++,thatwould copyallrecordswhicharehavingarea as”DEL”fromPHONE.DATto PHONBACK.DAT. Ans: void transfer() { |ios::binary);while(Fin.read((char*)&ph,sizeof(ph))) { if(ph.check(“DEL”)== 0) } Fin.close(); } thename,assumingthebinaryfileiscontainingtheobjectsofthefollowing class. class STUD { Ans: void { intmrno; intRno; cout<<”\nEntertheroll numbertomodify:“; cin>>mrno; while(File.read((char*)&s,sizeof(s))) { if(s.srno()==mrno) { File.seekp(–1* }; }File.close() ; }
intcheck(charac[]) { returnstrcmp(area,ac) } }; Q3. Write afunctionTRANSFER()inC++,thatwould copyallrecordswhicharehavingarea as”DEL”fromPHONE.DATto PHONBACK.DAT. Ans: void transfer() { |ios::binary);while(Fin.read((char*)&ph,sizeof(ph))) { if(ph.check(“DEL”)== 0) } Fin.close(); } thename,assumingthebinaryfileiscontainingtheobjectsofthefollowing class. class STUD { intRno; }; Ans: void { intmrno; cout<<”\nEntertheroll numbertomodify:“; cin>>mrno; while(File.read((char*)&s,sizeof(s))) { if(s.srno()==mrno) { File.seekp(–1* }File.close() ; }
1499140907master_card_and_practice_set_cs.docx