06.05.2013 Views

CONTENIDO DE LA LECCIÓN 18

CONTENIDO DE LA LECCIÓN 18

CONTENIDO DE LA LECCIÓN 18

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MIGUEL Á. TOLEDO MARTÍNEZ<br />

Ejemplo <strong>18</strong>.27<br />

El problema anterior puede mejorarse solicitando el número de datos a ordenar, llamaremos a este programa,<br />

BURBUJA2.CPP. Es importante que observe algunos cambios que hicimos en la función clasifBurbuja()<br />

/* El siguiente programa: BURBUJA2.CPP, ordena arreglos usando el método de ordenamiento<br />

de la burbuja.<br />

*/<br />

#include //Para cout y cin<br />

const int MIN = 2;<br />

const int MAX = 10;<br />

int obtenNumPuntos(int minimo, int maximo)<br />

{<br />

int numPuntos;<br />

do<br />

return numPuntos;<br />

}//Fin de obtenNumPuntos()<br />

{<br />

cout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!