Question: Using c++ write a program for the following problem. Please show your output screen. P2 Modify StackOfIntegers class We coded the class StackOf Integers in
P2 Modify StackOfIntegers class We coded the class StackOf Integers in which we defined a stack class for integers (The code for this class is given in the appendix at the end of the file.) Define a custom exception class named EmptyStackException and let the pop and peek functions throw an EmptyStackException if the stack is empty. Write a test program with a try-catch block to handle this type of exception
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
