[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Qsort
From: |
Rick Riolo |
Subject: |
Re: Qsort |
Date: |
Mon, 21 May 2001 07:21:11 -0400 (EDT) |
There is an example program at
www.pscs.umich.edu/CSCS/education/CSCS-courses/cscs50x-f00/PD2/
which should how to use QSort (as well as other things).
- r
Rick Riolo address@hidden
Center for Study of Complex Systems (CSCS)
4477 Randall Lab
University of Michigan Ann Arbor MI 48109-1120
Phone: 734 763 3323 Fax: 734 763 9267
http://www.pscs.umich.edu/PEOPLE/rlr-home.html
On Mon, 21 May 2001 address@hidden wrote:
> Date: Mon, 21 May 2001 12:53:20 +0200 (CEST)
> From: address@hidden
> Reply-To: address@hidden
> To: address@hidden
> Subject: Qsort
>
> 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.
>
>
==================================
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.
- Qsort, m . gallucci, 2001/05/21
- Re: Qsort,
Rick Riolo <=
- Re: Qsort, Matteo Morini, 2001/05/21