Skip to content
Snippets Groups Projects

makefile et autres

Open LEPPERT MICHAEL requested to merge mleppert/P4z:master into master
Compare and Show latest version
1 file
+ 19
14
Preferences
Compare changes
+ 19
14
@@ -7,8 +7,13 @@
int main(int argc, char const *argv[]) {
long tableauBis[20];
memset(tableauBis, 0, 20*sizeof(long));
int tailleTab = 20;
if(argc > 1){
tailleTab = atoi(argv[1]);
}
printf("Taille du tableau : %d\n", tailleTab);
long tableauBis[tailleTab];
memset(tableauBis, 0, tailleTab*sizeof(long));
/*long tab[5] = {3,2,5,1,4};
afficheTab(tab,5);
@@ -16,26 +21,26 @@ int main(int argc, char const *argv[]) {
afficheTab(tab,5);*/
printf("--- Tableau initial insertion ---\n");
genTabAlea(tableauBis,20);
afficheTab(tableauBis,20);
tri_insertion(tableauBis,20);
afficheTab(tableauBis,20);
genTabAlea(tableauBis,tailleTab);
afficheTab(tableauBis,tailleTab);
tri_insertion(tableauBis,tailleTab);
afficheTab(tableauBis,tailleTab);
printf("\n\n");
printf("--- Tableau initial fusion ---\n");
genTabAlea(tableauBis,20);
afficheTab(tableauBis,20);
triFusion(tableauBis,20);
afficheTab(tableauBis,20);
genTabAlea(tableauBis,tailleTab);
afficheTab(tableauBis,tailleTab);
triFusion(tableauBis,tailleTab);
afficheTab(tableauBis,tailleTab);
printf("\n\n");
printf("--- Tableau initial rapide ---\n");
genTabAlea(tableauBis,20);
afficheTab(tableauBis,20);
triRapide(tableauBis,20);
afficheTab(tableauBis,20);
genTabAlea(tableauBis,tailleTab);
afficheTab(tableauBis,tailleTab);
triRapide(tableauBis,tailleTab);
afficheTab(tableauBis,tailleTab);
return 0;
}