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.

#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
