03C-2016
CBSE12D-2016
Problem Statement - 03D
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(); };
Solution
CSKC| Created: 8-Jan-2019 | Updated: 14-Jan-2019|CBSE12D-2017