Skip to content
Snippets Groups Projects
Commit b6b8b9cf authored by mnguyen's avatar mnguyen
Browse files

Debogage de tri

parent cdd9c857
No related merge requests found
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -12,3 +12,6 @@ alea.o : tableau.h
io.o : tableau.h
gcc -g -c io.c
clean :
rm main *.o
......@@ -2,7 +2,7 @@
void bulle (int k) {
int i=0;
for (i=0 ; i<=k ; i++) {
for (i=0 ; i<k ; i++) {
if (t.valeurs[i+1] > t.valeurs[i]){ // echange de t[i] et t[i+1]
int tmp = t.valeurs[i+1];
t.valeurs[i+1] = t.valeurs[i];
......
No preview for this file type
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment