Sorting an Array
Regan Heath
regan at netmail.co.nz
Wed Jul 11 02:00:17 PDT 2007
okibi wrote:
> Well, the following comment made it seem like it won't work:
>
>>> // comparing sorting algorithm goes here. See wikipedia for examples.
>>> // Quicksort should do nicely and is easy to implement.
Oops, sorry, yeah that code isn't using the builtin array sort operation.
import std.c.stdlib;
and you should be able to call the C qsort() function. That can be a
bit of a nightmare in itself so give it a go and post if you have trouble.
Regan
More information about the Digitalmars-d-learn
mailing list