Objective:
Understand how stack works
Exercise a stack application: Infix to Postfix algorithm.
Practice STL stack.
Overview:
Create a stack class using array (try to have just the minimum function, e.g. push, pop). If you need help, check out this page.
Do programming exercise #11 in chapter 7. Detail algorithm is described in exercise #9 (see below).
If you need sample code, the textbook solution is in the attachment. It is important that you understand the code and make whatever changes needed for the exercise.
Do the same program with STL stack.
11