I'm working on a c++ assignment that requires me to push a string to a function, which pushes that string into a local stack<char>. Then the characters are removed from the stack and pushed to a local string. The goal is to reverse the characters of the string using
bool empty() const;
void pop();
void push(char& c);
char& top() const;
Right now I'm having difficulty just converting the string to stack<char>, so I haven't progressed much. That is the main part I need help with, but I wouldn't mind some tips for the actual reversal either. Thank you!