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
Get step-by-step solutions from verified subject matter experts
