bonjour, est ce que cette implémentation de tri en c reste du tri à insertion:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 void triInsertion(int *tableau,int longueurTableau) { int i; int j; long temp; for(i=1;i<longueurTableau;i++) { temp = tableau[i]; for(j=0;j<i;j++){ if (tableau[j] > temp) { tableau[i] = tableau[j]; tableau[j] = temp; } } } }
Partager