Exercícios de Structs
Enviar por email ([email protected]) para o professor até às 11:30 do dia 16/06/2008
Valendo Nota
#include <cstdlib> void qsort( void *buf, size_t num, size_t size, int (*compare)(const void *, const void *) ); The qsort() function sorts buf (which contains num items, each of size size) using Quicksort. The compare function is used to compare the items in buf. compare should return negative if the first argument is less than the second, zero if they are equal, and positive if the first argument is greater than the second. qsort() sorts buf in ascending order. |