no save
Assistance
Achat
News

Forum | programmation
tableaux
scol30, le sam. 19 nov. 2005 à 21:43:03
pour faire un printf tu as seulement besoin de faire un while sur chaque valeur du tableau et de faire
printf("_");

Quelque chose comme ça

int i =0;
int val = tab[0];

while(i!=INDEXMAXTAB) {
printf("_");
val--;
if(val==0) {
printf("\n");
i++;
val = tab[i];
}
}


C'est probablement pas le plus beau code mais ca marche plutôt bien je crois.

Stef
Précédentjohan
nov. 05
johan
nov. 05
Suivant
REPONSES
Jamel_AlBatal
nov. 05
johan
nov. 05
scol30
nov. 05
johan
nov. 05
scol30
nov. 05
johan
nov. 05
scol30
nov. 05
johan
nov. 05
johan
nov. 05
scol30
nov. 05
Version Web
Réalisé par RedShift
no save