Detailed Print – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  


Shop
siteicon
Solved Problem#CPP#7026

Problem Statement - 04B-2019S-C2

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.

Solution

Click to open popup