implementation of function for Qsort

This is a discussion on implementation of function for Qsort within the C Programming forums, part of the General Programming Boards category; As part of a project I need to implement a function for Qsort to sort an array of integers and ...

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    7

    implementation of function for Qsort

    As part of a project I need to implement a function for Qsort to sort an array of integers and to sort strings.
    If you have any suggestions please forward them.
    Thank you.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,505
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >If you have any suggestions please forward them.
    Assuming by Qsort you mean a function like the C standard library's qsort function implemented with quicksort, any algorithms book will give you the algorithm, most in C or C++..
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Brand new to C need favor
    By dontknowc in forum C Programming
    Replies: 5
    Last Post: 09-21-2007, 10:08 AM
  2. Calling a Thread with a Function Pointer.
    By ScrollMaster in forum Windows Programming
    Replies: 6
    Last Post: 06-10-2006, 08:56 AM
  3. Bisection Method function value at root incorrect
    By mr_glass in forum C Programming
    Replies: 3
    Last Post: 11-10-2005, 08:10 AM
  4. C++ compilation issues
    By Rupan in forum C++ Programming
    Replies: 1
    Last Post: 08-22-2005, 05:45 AM
  5. c++ linking problem for x11
    By kron in forum Linux Programming
    Replies: 1
    Last Post: 11-19-2004, 09:18 AM

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