03C-2016
CBSE12D-2016
Problem Statement - 03C
Write the definition of a member function DELETE() for a class QUEUE in C++, to remove a product from a dynamically allocated Queue of products considering the following code is already written as a part of the program.
struct PRODUCT { int PID; char PNAME[20]; PRODUCT *Next; }; class QUEUE { PRODUCT *R,*F; public: QUEUE(){R=NULL;F=NULL;} void INSERT(); void DELETE(); ~QUEUE(); };
Solution
CSKC| Created: 1-Jan-2019 | Updated: 20-Feb-2019|CBSE12A-2016