- To practice solving problems using stack
- To be able to manipulate stack
- To practice writing solutions to problems in a clear and succinct way
Problem
Write a program to create a Stack data structure that store integer data values. Your program should display a menu of choices to operate the Stack data structure. See the sample menu below:
==================================================
Stack Operations Menu
==================================================
- Add items
- Delete items
- Show the number of items
- Show min and max items
- Find an item
- Print all items
- Exit
Enter your choice:1
Do not implement the stack with STL. The stack must be implemented using a fixed size array. The stack functions (i.e. push(), top(), pop(), isEmpty() ) should be implemented below the main() and prototyped above the main().
Reviews
There are no reviews yet.