From: Alexsandro M. <mei...@gm...> - 2005-04-25 02:52:22
Hi, all!
Does anyone know any function to order elements?=20
What I need is to pick up a list of numbers like: 1 232 44 5 5 45 5 45 545=
=20
and get an ordered list like 1 5 5 5 44 45 45 232 545, i.e., from the=20
minimum value to the maximum value.
Thanks in advance!
--=20
Alexsandro Meireles
From: Daniel P. <dan...@st...> - 2005-04-25 22:33:28
use bubblesort
http://www.devx.com/vb2themax/Tip/18972
it works perfect for smaller arrays
Alexsandro Meireles wrote:
> Hi, all!
>
> Does anyone know any function to order elements?
>
> What I need is to pick up a list of numbers like: 1 232 44 5 5 45 5 45
> 545 and get an ordered list like 1 5 5 5 44 45 45 232 545, i.e., from
> the minimum value to the maximum value.
>
> Thanks in advance!
>
> --
> Alexsandro Meireles
No need to ever try bubble-sort except for real desperation in an embedded
system where code space is a premium. There are so many better sort
methods immediately available - several of them already existing in the
normal C/C++ libraries...
/Per W
On Mon, 25 Apr 2005, Daniel Pettersson wrote:
> use bubblesort
>
> http://www.devx.com/vb2themax/Tip/18972
>
> it works perfect for smaller arrays
>
>
> Alexsandro Meireles wrote:
>
> > Hi, all!
> >
> > Does anyone know any function to order elements?
> >
> > What I need is to pick up a list of numbers like: 1 232 44 5 5 45 5 45
> > 545 and get an ordered list like 1 5 5 5 44 45 45 232 545, i.e., from
> > the minimum value to the maximum value.
> >
> > Thanks in advance!
> >
> > --
> > Alexsandro Meireles
>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>