Queue

This is a discussion on Queue within the C++ Programming forums, part of the General Programming Boards category; Can someone please my me figure out this pseudo code. I don't know where to begin. I already wrote the ...

  1. #1
    Unregistered
    Guest

    Unhappy Queue

    Can someone please my me figure out this pseudo code. I don't know where to begin. I already wrote the node and queue class. Its an
    Airplane Landing Queue using linked lists Thank you

    for each time step
    begin
    if isarrived
    begin
    allocate plane
    output data for plane with request for landing
    if landing queue is not full
    begin
    enqueue plane
    end
    else
    begin
    output plane diverted
    delete plane
    end
    end
    if not islanding
    begin
    dequeue plane
    output pane landing
    delete plane
    islanding reset
    end
    else
    islanding decrement
    end

  2. #2
    Registered User kitten's Avatar
    Join Date
    Aug 2001
    Posts
    109
    Eh, you'd like someone to write a code for you?
    Making error is human, but for messing things thoroughly it takes a computer

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, 09: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, 10:09 PM
  4. help with queues
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 05-21-2002, 12:39 PM
  5. queue help
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 10-29-2001, 09:38 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21