Please support our C++ advertiser: Programming Forums
![]() |
What is wrong with this:
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.
for(int b = 0;b < c.length();b++)
{
temp[b] << S.Pop(); // or temp[b] = S.Pop();
}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.
![]() |
Similar Threads
Other Threads in the C++ Forum
- How do i output the contents of the stack with the functions Output ? (C++)
- String to real and real to String (Assembly)
- palindrome (Java)
- File i/o question (C++)
- Any Boolean Expression to Sum of Minterms (C++)
- Stacks in C++ (C++)
Other Threads in the C++ Forum
- Previous Thread: C++ or JAVA for beginnier
- Next Thread: Need some simple help!
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode