hello
can any one tell me how i can create program to sort string
list(standard template library) using quicksort.
"standard template library" is C++, not C; perhaps you were reading
the map upside-down?
quicksort isn't C, either [the library function `qsort` needn't be
implemented with quicksort].
If you were to sort an array of strings in C, using `qsort`, you'd
write a comparison function that used the signature `qsort` expects:
int(*compar)(const void *, const void *)
remembering that the `const void *`s will be pointing to strings and
hence will need casting to `char **` and need a dereference in the
likely call to `strcmp`.
--
Yes, Virginia, there is a second Jena user conference: Palo Alto, Sep 2007.
"Life is full of mysteries. Consider this one of them." Sinclair, /Babylon 5/
Hewlett-Packard Limited registered no:
registered office: Cain Road, Bracknell, Berks RG12 1HN 690597 England