swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Qsort


From: m . gallucci
Subject: Qsort
Date: Mon, 21 May 2001 12:53:20 +0200 (CEST)

Hello

I'm having problem with QSort. My aim is to sort a List of object
accordingly to the value returned by one of the method of the objects.
That is, I have a List * population, made by several calls to
[population addLast: bug]. I'd like to sort bugs accortingly to (float)
[bug getFitness]. I've tried QSort with [population setCompareFunction],
but at best I get a segmentation fault. Could you please post some code
where I see how to use QSort. 


thanks 
marcello

p.s. i've looked at QSortTest.m but it's no use since there it sorts a
(collection ) vector of numbers. 
-- 
Marcello Gallucci (Ph.D)

Department of Social Psychology
Free University 
Van der Boechorststraat 1 
1081 BT Amsterdam (NL)
Tel. +31(0)20 4448846




                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]