[prog] C++ - linked list and segmentation fault
Robert J. Hansen
rjh at sixdemonbag.org
Tue Apr 8 16:34:47 EST 2003
> new pStart object. I am still having some difficulty with the deAlllocation
> function and I have to write in a sort procedure as the . I'm well on my
Warning: sorting lists is a tricky subject and often fraught with
difficulties. It can be done, but it usually can't be done with near
the efficiency of an array- or vector-oriented sort.
I'd suggest, if/when you have to sort the linked list, that you look
into a recursive mergesort. It seems to be the easiest way to do it.
--
Robert J. Hansen <rjh at sixdemonbag.org>
More information about the Programming
mailing list