Question:
A binary file DOCTORS.DAT contains records stored as objects of the following class:
class Doctor
{
int DNo; char Name[20]; float Fees;
public;
int *GetNo() { return DNo; }
void Show()
{ cout<<Dno<<"*"<<Name<<"*"<<Fees<<endl; }
};
Write definition for function Details(int N) in C+, which displays the details of the Doctor from the file DOCTORS.DAT, whose DNo matches with the parameter N passed to the function.
C. Sir| Created: 8-Apr-2019 | Updated: 10-Apr-2019|CBSE12A-2019
