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

This is a discussion on How do I use RadixSort on the queue class from the standard library? within the C++ Programming forums, part of the General Programming Boards category; I can't figure out how to use RadixSort using the queue class from the standard library. I have a problem ...

  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-13-2006, 11:00 PM
  2. Message class ** Need help befor 12am tonight**
    By TransformedBG in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2006, 10:03 PM
  3. Questions about Templates
    By Shamino in forum C++ Programming
    Replies: 4
    Last Post: 12-17-2005, 11:22 PM
  4. Help with Class Library .NET and Classes :0
    By Robert_Sitter in forum Windows Programming
    Replies: 2
    Last Post: 11-27-2005, 07:42 PM

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