Mooophy / Cpp-Primer

C++ Primer 5 answers
Creative Commons Zero v1.0 Universal
8.11k stars 3k forks source link

Cannot understand exercise 9.52, please help. #808

Open StephenChips opened 3 years ago

S8r2j commented 2 years ago

In the exercise 9.52, its showing the use of stack to reverse the string that is enclosed in the bracket. Its using the push function to input the string's character one by one into the stack and using the pop function to output the inputted character into reverse order.