Re: [Dev-C++] Function to order elements
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2005-04-26 07:10:26
|
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 > |