Thread: Queue

  1. #1
    Unregistered
    Guest

    Queue

    Whats the differents between a Queue and a Priority Queue


    Pamela

  2. #2
    I'm not sure exactly what you are talking about, but let me try and help you.

    A queue might be lined up in any order, such as order things were added...A priority queue might be lined up in accordance to each of the items in the queue. If you could give me a little more information about what you were talking about, I think I could help you out.
    What will people say if they hear that I'm a Jesus freak?
    What will people do if they find that it's true?
    I don't really care if they label me a Jesus freak, there is no disguising the truth!

    Jesus Freak, D.C. Talk

    -gnu-ehacks

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    194
    Ok ill try posting this again.. it didn't make it the first time

    A queue is a simple First In First Out (FIFO) structure
    Whatever is pushed in first, will be pulled out first.

    A priority queue is like a queue, but it sortes the items in the queue. Using STL the default is to have the largest items be pulled out first, so no matter what order the items are pushed in, the biggest one will be pulled out first.

    Check out this STL reference for some help
    http://www.sgi.com/tech/stl/table_of_contents.html

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with FIFO QUEUE
    By jackfraust in forum C++ Programming
    Replies: 23
    Last Post: 04-03-2009, 08:17 AM
  2. Fixing my program
    By Mcwaffle in forum C Programming
    Replies: 5
    Last Post: 11-05-2008, 03:55 AM
  3. help with queues
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 05-21-2002, 09:09 PM
  4. help with queues
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 05-21-2002, 11:39 AM
  5. queue help
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 10-29-2001, 09:38 AM