| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| Visual C++ Programming Ask questions about Windows programming with Visual C++ and help others by answering their questions. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
removing item from queue then viewing it?
i have created a queue of stacks. i am supposed to remove the first item from my queue (which is a stack of two words) and then view the top word of the stack i just removed. i know that i can say myqueue.front.top() to look at the word BEFORE i remove it...but how do i view the item after i remove it??
|
|
#2
|
|||
|
|||
|
Re: removing item from queue then viewing it?
Obviously you'd need to copy it somewhere else before removing it. Once it's removed, it don't exist in the queue no more.
|
|
#3
|
|||
|
|||
|
Re: removing item from queue then viewing it?
What difference does it make to view it before and after popping it.
__________________
«_Superman_» I love work. It gives me something to do between weekends. Microsoft MVP (Visual C++) |
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|