Question
In this program we are using a modified version of the Stack data structure we have seen in class. The difference is that in this
In this program we are using a modified version of the Stack data structure we have seen in class. The difference is that in this version, we are not just storing a long in each stack location, we are also storing a char.
Your Link struct should be modified to reflect this change. Your Stack struct should be a stack of Link objects, and your push function should accept two arguments, a long and a char. Fianlly, your pop function should return a pointer to Link, and not just a long.
Long story short, make it so that opStack.cpp compiles and runs, and that it produces the expected output. Upload your updated OpStack.h file here.
#includeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started