qsort on multi-dimensional array

Discussion in 'C Programming' started by bsder, Jul 14, 2005.

  1. bsder

    bsder Guest

    Hi,

    Can anyone provide me a qsort example on 3-dimensional array?

    Thanks
    D
     
    bsder, Jul 14, 2005
    #1
    1. Advertisements

  2. bsder wrote:
    > Hi,
    >
    > Can anyone provide me a qsort example on 3-dimensional array?
    >
    > Thanks
    > D


    It really depends on how your defining and using your 3-d array.
    Are you using one contiguous block of memory or are you using pointers
    to sub-arrays?
    Do you want to sort each row, the entire cube, ... ?

    -Charlie
     
    Charles Mills, Jul 14, 2005
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. kk_oop
    Replies:
    1
    Views:
    2,299
  2. Replies:
    7
    Views:
    1,014
    Ryan Stewart
    Feb 20, 2005
  3. John Harrison
    Replies:
    2
    Views:
    879
    John Harrison
    Jul 14, 2003
  4. Tom
    Replies:
    9
    Views:
    804
    Victor Bazarov
    Oct 19, 2003
  5. Venkat
    Replies:
    4
    Views:
    1,251
    Venkat
    Dec 5, 2003
  6. sugaray
    Replies:
    1
    Views:
    7,021
    Rob Williscroft
    Dec 25, 2003
  7. bsder
    Replies:
    18
    Views:
    914
    Michael Mair
    Jul 15, 2005
  8. Wirianto Djunaidi
    Replies:
    2
    Views:
    362
    Wirianto Djunaidi
    Apr 29, 2008
Loading...