Change input to avoid buffer overflow #14
@ -232,11 +232,12 @@ int main (int argc, char **argv) {
|
||||
// quick sort
|
||||
}
|
||||
else if (algoritmo == 2) {
|
||||
fprintf(stdout, "Bubble sort corriendo...\n");
|
||||
fprintf(stdout, "Bubble sort corriendo... ");
|
||||
fflush(stdout);
|
||||
start_timer();
|
||||
bubble_sort(array, n);
|
||||
stop_timer();
|
||||
fprintf(stdout, "done\n");
|
||||
}
|
||||
else if (algoritmo == 3) {
|
||||
// bitonic sort
|
||||
|
Loading…
Reference in New Issue
Block a user