Write a C++ Stack class template (in Stack.h) which implements a stack. You must implement your own
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a C++ Stack class template (in Stack.h) which implements a stack. You must implement your own linked list for this. Provide the member functions empty, top, push, pop, size, as well as a constructor and a destructor. You should also implement a copy constructor and an assignment operator. Use a nested class to define the elements in the linked list.
Take your solution from the previous exercise, and change it to use the new Stack class instead of the STL stack class. Put your main program in RPN.cc.
Solution from previous exercise:
Related Book For
Accounting Information Systems
ISBN: 978-0133428537
13th edition
Authors: Marshall B. Romney, Paul J. Steinbart
Posted Date: