Write a function in C++ to read and display the detail of all the members whose membership type is 'L' or 'M' ftom.a binary file "CLUB.DAT". Assume the binary file "CLUB.DAT" contains object of class CLUB,which is defined as follows:
class CLUB {
int Mno; //Member number
char Mname[20]; //Member name
char Type; //Member Type:L Life member M monthly Member G Guest
public:
void Register(); //Function to enter the content
void Display(); //Function to display all data members
char WhatType() {return Type;}
};
Please give answer of every part of this question.
Don't give answer of a individual function.