Question: C or C++ only please During this lab time, you need to do the following: Using dynamic memory allocation to implement a stack of integers.

C or C++ only please
During this lab time, you need to do the following: Using dynamic memory allocation to implement a stack of integers. Try to make all the functions of the stack general so that they can be used for other data type. A generic stack will be useful for other applications such as in problems of assignments. You need to write each function separately and create your own header file. Write a main function which can used to test all of your functions of the stack. When the main function runs, it asks a user to input choices: Please enter a letter: A: create a stack; B: pop out an integer; C: push in an integer; D: destroy a stack; E: top a stack; Then the user can input a character and test the related function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
