Question: How should I complete and test the code? Please fill in the functions. struct NodeType int info; NodeType next class Stack private int top: NodeType
How should I complete and test the code? Please fill in the functions.

struct NodeType int info; NodeType next class Stack private int top: NodeType head; It points to the head of a singly-linked list public: Stack; default constructor: Stack is created and empty Stack(Stack &x); copy constructor void MakeEmpty0 / Stack is made empty bool IsEmpty: test if the stack is empty bool IsFull( ); .. test if the stack is full; assume MAXITEM-100 int length); return the umber of elements in the stack void Print); print the value of all elements in the stack in the sequence from the top to bottom void Push(intx); insert x onto the stack void Pop int &x); / delete the top element from the stack -Stack0: Destructor Precondition: the stack is not empty
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
