Quene managment 1 c++ ๐Ÿ˜Š๐Ÿ˜Š | Sololearn: Learn to code for FREE!

+13

Quene managment 1 c++ ๐Ÿ˜Š๐Ÿ˜Š

You are working on a Queue management system and need to create the class to hold the queue data, which are customer IDs (integers). You make a Queue class, which has a size attribute, and an array, to hold the data of the queue. The class has a remove() method to remove the front item of the queue, a print() method to output the queue. You need to create an add() method for the Queue class, that will take an item and add it to the end of the queue. The code needs to be fully working, so that the Queue declaration and manipulation code in main() works.

7 Answers

New Answer

+6

public : void add(int n) { queue[size]=n; size++; } Just write this in Queue class.

+9

Manav Roy bhaiya like bhi kardo question ko ๐Ÿ˜œ๐Ÿ˜œ๐Ÿ˜œ Answer to shi h

+3

https://www.sololearn.com/Discuss/2608714/?ref=app Right solution of your question is here

+3

๐Ÿ˜‡ ๐ŸŒŸSWATI ๐ŸŒŸ ๐Ÿ˜‡ Hi, My solution is also working ๐Ÿ˜ธ

+2

Manav Roy okay i just told him that he can get more answer via this link

+1

Hello

+1