Question: Using C++ please A stack can be used to print a string in its reverse order. Complete the function below, to store each character in
Using C++ please
A stack can be used to print a string in its reverse order. Complete the function below, to store each character in the stack and then take each character out in turn to print. The expected output should be "215-EEB".
Code to edit from: void stackTest() { stack st; string testWord = "BEE-215"; // EDIT CODE HERE cout << endl; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
