Question: Code in C++ Please Code In C++ Please Write a program that accepts the user's input of 4 string items that places them (pushes) on
Code in C++ Please

Code In C++ Please
Write a program that accepts the user's input of 4 string items that places them (pushes) on a Stack and displays the Stack. Then have your code remove one item at a time (pop), displaying the Stack after each pop. Your program must prompt the user to input 4 string items. Example input: Enter four items, separated by a space: Fred Jane Marv Steve the output is: Stack: [Fred, Jane, Marv, Steve] Stack after first item popped: [Fred, Jane, Marv] Stack after second item popped: [Fred, Jane] Skeleton code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
