Question: Fill in the missing code in c++ please Function fillStack reads a collection of data strings ending w with the sentinel string (***) Function fillStack
Function fillStack reads a collection of data strings ending w with the sentinel string ("***") Function fillStack pushes each string read except the displayStack to pop each string from the stack and display it, thereby displaying onto a stack. Then it the strings in reverse order # include #include # include using namespace std: typedef stack stringStack: int fillStack (stringStack& s): void displayStack (stringStack& s): int main() { string Stack s: fillStack(s): displayStack(s): return 0: } int fillStack (stringStack& s): { (A) Write necessary code } void displayStack (stringStack& s) { // (B) Write necessary code } Sample output: Enter next string or *** > Here Enter next string or*** > are Enter next string
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
