// read user input and then, on error regurgitate it backwards... #include #include #include "stack.h" using namespace std; int main() { try{ char c; Stack s; cout<< "Input a text. Finish with CTRL/D on a new line\n"; while(cin.get(c)) s.push(c); s.debug(); while(!s.empty()){ c =s.top(); cout << c ; s.pop(); }//while cout <