How can I use a stack to reverse the order of a string.
If I have "abcde" I want to print the reverse "edcba". But I want a stack program to do the reverse action.
I need some logical guidance. I do have a working stack program.
How can I use a stack to reverse the order of a string.
If I have "abcde" I want to print the reverse "edcba". But I want a stack program to do the reverse action.
I need some logical guidance. I do have a working stack program.