CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Urgent!!!!!

  1. #1
    Join Date
    Mar 2004
    Posts
    15

    Lightbulb Urgent!!!!!

    Hi,

    How do I write a Program in ā€˜Cā€™ language to evaluate an expression using a Queue. You should not use the concept of Stack any where in your program.

    Thanks in advance

  2. #2
    Join Date
    Jan 2004
    Location
    Bangalore
    Posts
    53
    Hi,
    Use priority Q!

  3. #3
    Join Date
    Jan 2002
    Location
    Scaro, UK
    Posts
    5,940
    Oh another homework question.

    A stack is a single-ended queue anyway as far as I know - but it's been a very long time since I did programming theory so give be a bit of a break.

    I suppose what they mean is not to have Push and Pop.

    But that's just AddHead/RemoveHead in double-ended queue terms anyway.

    A stack is just a FILO (first in last out) queue I think.

    So does the person only want you to use FIFO (first in first out) queues or what ?

    Darwen.
    www.pinvoker.com - PInvoker - the .NET PInvoke Interface Exporter for C++ Dlls.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured