Question: Construct a simple program in c++ to implement a stack of integer numbers using the Linked List. Your program must have the following functions: bool
Construct a simple program in c++ to implement a stack of integer numbers using the Linked List.
Your program must have the following functions:
bool IsEmpty( );
void Push(int);
int Pop( );
void Traverse( );
int peak();
Inside the main function, the user should be able to choose one function at a time from the above functions, and when the user entered -1, the program should be terminated.
*don't use malloc function*
- What are the limitations of the static array implementation for the stack?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
