Here's my code:
#include <iostream>
#include <string>
#include <stack>
using namespace std;
int main()
{
string input;
cout << "Enter text for palindrome checker. No spaces or punctuation please." << endl;
getline(cin, input);
stack<char> stackOne;
for(char i = 0; i < input.length(); i++)
stackOne.push(input[i]);
stack<char> stackTwo;
for(char j = 0; j < input.length(); j++)
stackTwo.push(input[j]);
stack<char> stackThree;
while (!stackTwo.empty())
return 0;
}
My question is : what code can I add to push the contents of stack two onto stack three?
Thanks