Question: C++ Stacks and queues Part 1 - Without using the STL, create a stack and queue. Input the same set of data in both. Output

C++ Stacks and queues

Part 1 - Without using the STL, create a stack and queue. Input the same set of data in both. Output the contents of both.

Your custom Stack/Queue classes should be able to:

Add (Push/Shift)

Remove (Pop/Unshift)

Tell us how many items are in the object (Count)

Part 2 Using the STL, implement a stack and a queue and complete the same tasks as part 1.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!