<html><div style='background-color:'><P>
<P><FONT color=#333366 size=5><EM><FONT face="Times New Roman, Times, Serif" size=2>QuickSort... Random</FONT></EM></FONT></P></P>
<P><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif"></FONT> </P>
<P><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif"> </P>
<P>
<HR color=#a0c6e5 SIZE=1>
</P>
<P>From: <I>Paco <jrpaco958@gmail.com></I><BR>Reply-To: <I>Lista de correo sobre C y C++ <cconclase@listas.conclase.net></I><BR>To: <I>cconclase@listas.conclase.net</I><BR>Subject: <I>Re: [C con Clase] Ayuda con estructuras y búsqueda!.</I><BR>Date: <I>Wed, 25 Apr 2007 12:55:56 -0500</I><BR>>Un algoritmo sencillo de ordenación, lo copié de una web de Internet, simplemente busca algoritmos de ordenación en google, este es el mas sencillo, burbuja creo que se llamaba, nunca me acuerdo de los nombres, :-).<BR>><BR>><BR>>void seleccion (int a[])<BR>>{<BR>>int i, j;<BR>>int minx, minj;<BR>><BR>>for (i=0; i < n-1; i++) {<BR>>minj = i;<BR>>minx = a[i];<BR>>for (j = i; j < n; j++) {<BR>>if (a[j] < minx) {<BR>>minj = j;<BR>>minx = a[j];<BR>>}<BR>>}<BR>>a[minj] = a[i];<BR>>a[i] = 
minx;<BR>>}<BR>>}<BR>>_______________________________________<BR>>By jrpaco958<BR>>_______________________________________________<BR>>Lista de correo Cconclase Cconclase@listas.conclase.net<BR>>http://listas.conclase.net/mailman/listinfo/cconclase_listas.conclase.net<BR>>Bajas: http://listas.conclase.net/index.php?gid=2&mnu=FAQ<BR></P></FONT></div><br clear=all><hr>Don't just search. Find. <a href="http://g.msn.com/8HMAEN/2746??PS=47575" target="_top">MSN Search</a> Check out the new MSN Search!</html>