A two dimensionnal tables.

This commit is contained in:
thibault62
2016-12-12 14:01:25 +01:00
committed by GitHub
parent 657be3088b
commit c7ee912106
+28
View File
@@ -0,0 +1,28 @@
#include <stdio.h>
#include <stdlib.h>
void afficherTableau(int tableau[24][80]);
int main(void)
{
FILE* fichier = NULL;
fichier=fopen("Pause","r");
int tableau[24][80] = fgetc(fichier);
afficherTableau(tableau);
return EXIT_SUCCESS; /* Equivalent à return 0 sous Windows, permet un code portable */
}
void afficherTableau(int tableau[24][80])
{
int i = 0;
int j = 0;
for (i = 0; i < 24; i++) {
for(j = 0; j < 80; j++) {
printf("Tableau[%d][%d] = %d\n", i, j, tableau[i][j]);
}
}
fclose(fichier);
system("clear");
}