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. Advertising

  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. Advertising

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,176
  2. Replies:
    7
    Views:
    855
    Ryan Stewart
    Feb 20, 2005
  3. Venkat
    Replies:
    4
    Views:
    1,009
    Venkat
    Dec 5, 2003
  4. bsder
    Replies:
    18
    Views:
    774
    Michael Mair
    Jul 15, 2005
  5. Wirianto Djunaidi
    Replies:
    2
    Views:
    223
    Wirianto Djunaidi
    Apr 29, 2008
Loading...

Share This Page