C++/ Write a CLIENT program (so a MAIN that uses the Stack do NOT CHANGE THE STACK this is a CLIENT PROGRAM) that create
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
C++/ Write a CLIENT program (so a MAIN that uses the Stack do NOT CHANGE THE STACK this is a CLIENT PROGRAM) that create
C++/ Write a CLIENT program (so a MAIN that uses the Stack do NOT CHANGE THE STACK this is a CLIENT PROGRAM) that creates a stack of type int (so one stack instance): aStack. Ask the user for 5 ints and push them onto aStack. Find a way to print the values in aStack in from the bottom to the top (so display the top LAST) - so if aStack was 1,2,3,4,5 with 5 at the top and 1 at the bottom you want it to display 1,2,3,4,5 (you don't want it to display 5,4,3,2,1 like normal). You can use ArrayStack.h or LinkedStack.h for your stacks but do NOT change the code for ArrayStack or LinkedStack. Submit ONLY your main method for this program. Preferably copy and paste but I set it up so you can submit files if need be.