Question: Please code everything in C++ and make sure to submit a MyStack.cpp file AND a MyStack.h file LinkedList.h file: LinkedList.cpp Basic data structures. Inherit the
Please code everything in C++ and make sure to submit a MyStack.cpp file AND a MyStack.h file

LinkedList.h file:

LinkedList.cpp


Basic data structures. Inherit the provided LinkedList class to design a MyStack class: class MyStack public LinkedList f //your class definition goes here li Your MyStack stack should act as a "stack" and be able to hold an arbitrary number of int variables. You can use the following test code to test your stack as an example (you may expand on the test code as needed): MyStack newstack; newstack.push (8) newstack.push (3); newstack.push (52) while (!newstack. IsEmpty cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
