CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Deploying Windows Server 2008 with System Center
  • Remote Desktop Protocol Performance Improvements in Windows Server 2008 R2 and Windows 7
  • The Microsoft Dynamics CRM Security Model
  • SQL Server Modeling Services with Microsoft Visual Studio 2010 Beta 2

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Visual C++ Programming
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Visual C++ Programming Ask questions about Windows programming with Visual C++ and help others by answering their questions.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old September 11th, 2009, 11:15 PM
    rajohns08 rajohns08 is offline
    Member
     
    Join Date: Aug 2009
    Posts: 29
    rajohns08 is an unknown quantity at this point (<10)
    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??
    Reply With Quote
      #2    
    Old September 12th, 2009, 12:23 AM
    Lindley Lindley is offline
    Elite Member
    Power Poster
     
    Join Date: Oct 2007
    Location: Fairfax, VA
    Posts: 6,905
    Lindley is a name known to all (1000+) Lindley is a name known to all (1000+) Lindley is a name known to all (1000+) Lindley is a name known to all (1000+) Lindley is a name known to all (1000+) Lindley is a name known to all (1000+) Lindley is a name known to all (1000+) Lindley is a name known to all (1000+) Lindley is a name known to all (1000+)
    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.
    Reply With Quote
      #3    
    Old September 12th, 2009, 03:05 AM
    _Superman_ _Superman_ is offline
    Member
     
    Join Date: Feb 2009
    Location: India
    Posts: 439
    _Superman_ is a jewel in the rough (200+) _Superman_ is a jewel in the rough (200+) _Superman_ is a jewel in the rough (200+)
    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++)
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Visual C++ Programming


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 03:29 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.