Thread: How do I use RadixSort on the queue class from the standard library?

  1. #1
    DoDo
    Guest

    Question How do I use RadixSort on the queue class from the standard library?

    I can't figure out how to use RadixSort using the queue class from the standard library. I have a problem when i use pop(); since it is a void it won't work. Anway does anyone know how i can use RadixSort on the STL class queue and sort 50 six digit numbers?

  2. #2
    DoDo
    Guest

    Please Help

    Someone Please Help!

  3. #3
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    radix is based on the current digit, usually base-10. This means you will have 10 tables of queues for any given stage. It's also based on integers and thus you can never have void as a type. integer is always your type. I can not see where you think that void comes into play
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  4. #4
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    is it possible that you mean the digits to the left of the valid number?

    000035 is a "six digit number" in a sense. If that's what you mean, put zero not void. I sincerely hope that's not what you meant.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. linker error
    By tasha302 in forum C++ Programming
    Replies: 3
    Last Post: 12-14-2006, 12:00 AM
  2. Message class ** Need help befor 12am tonight**
    By TransformedBG in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2006, 11:03 PM
  3. Questions about Templates
    By Shamino in forum C++ Programming
    Replies: 4
    Last Post: 12-18-2005, 12:22 AM
  4. Help with Class Library .NET and Classes :0
    By Robert_Sitter in forum Windows Programming
    Replies: 2
    Last Post: 11-27-2005, 08:42 PM