Question: I need help implementing the code. Exercise 4:Copy the files inlab12a.h, inlab12a.cc, and a main function, main12.cc, to your account. The main program should use
Exercise 4:Copy the files inlab12a.h, inlab12a.cc, and a main function, main12.cc, to your account. The main program should use a stack to print an input string of characters in reverse. A portion of the program needs to be written. Complete the program. Compile and test the program. Exercise 5:Add a member function called numOnStack to the class. This function should return the number of elements on the stack. Hint: It is a very short function. Add a call in the main program to test your new function and print out the return value. Turn in a printout of the revised inlab12a.h, inlab 12a.cc, and main12.cc with a compile and run demonstrating that the code written for Exercises 4 and 5 is working
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
