What is wrong with this:
for(int b = 0;b < c.length();b++)
{
temp[b] << S.Pop(); // or temp[b] = S.Pop();
}
to have a string made up of the contents of the stack?
When I do this and cout << temp, temp is blank. This iterates through the loop properly, it just does not place the characters from the stack into the string.