0

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.

2
Contributors
2
Replies
3
Views
11 Years
Discussion Span
Last Post by sifuedition
0

please tell us more about your code

how have u declared temp....defination of pop() function

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.