Question: using c++ Write a program that opens a text file and reads its contents into a stack of characters. The program should then pop the
using c++

Write a program that opens a text file and reads its contents into a stack of characters. The program should then pop the characters from the stack and save them in a second text file. The order of the characters saved in the second file should be in the reverse order of the first file. After completely writing the output file, open it for reading and display the contents to the screen. You must use a DYNAMIC STACK TEMPLATE that will work for ANY data type. Your dynamic stack must have push, pop, and isEmpty members. .Your stack should be created in main like this: DynStack
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
