sorting with pointers

This is a discussion on sorting with pointers within the C Programming forums, part of the General Programming Boards category; i am trying to sort a list of numbers (ranging from 1000 to 9999) in a function using pointers. The ...

  1. #1
    Unregistered
    Guest

    Talking sorting with pointers

    i am trying to sort a list of numbers (ranging from 1000 to 9999) in a function using pointers. The amount of data in each list can be up to 50 entries. When I move an entry in this list, there is corresponding string data in 2 other arrays that I must also move (also pointers). I need to get this list in ascending order but I cant figure out how to do it.

    Any help is appreciated.

    ThanX

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Use the search function for this board. I get tired of answering the same questions over and over.

    -Prelude
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with linked list sorting function
    By Jaggid1x in forum C Programming
    Replies: 6
    Last Post: 06-02-2009, 03:14 AM
  2. sorting number
    By Leslie in forum C Programming
    Replies: 8
    Last Post: 05-20-2009, 05:23 AM
  3. Variable pointers and function pointers
    By Luciferek in forum C++ Programming
    Replies: 11
    Last Post: 08-02-2008, 03:04 AM
  4. MergeSort with array of pointers
    By lionheart in forum C Programming
    Replies: 18
    Last Post: 08-01-2008, 11:23 AM
  5. moving pointers to pointers
    By Benzakhar in forum C++ Programming
    Replies: 9
    Last Post: 12-27-2003, 08:30 AM

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