Good Morning
04:00 am

Sponsor Area

Sponsor Area

Question is

Write the definition of a member function ADDMEM() for a class QUEUE in C++, to add a MEMBER in a dynamically allocated Queue of Members considering the following code is already written as a part of the program.

struct Member
{
	int MNO;
	char MNAME[20];
	Member *Next; 
};
class QUEUE
{
	Member *Rear,*Front;
public:
	QUEUE(){Rear=NULL;Front=NULL;}
	void ADDMEM();
	void REMOVEMEM();
	~QUEUE();
};

Mock Test Series

Sponsor Area

Sponsor Area

NCERT Book Store

NCERT Sample Papers

Entrance Exams Preparation