From c7ee912106d3f439fc90ac90a50dbdfdb84a6970 Mon Sep 17 00:00:00 2001 From: thibault62 Date: Mon, 12 Dec 2016 14:01:25 +0100 Subject: [PATCH] A two dimensionnal tables. --- exiasaver.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 exiasaver.c diff --git a/exiasaver.c b/exiasaver.c new file mode 100644 index 0000000..ea0f5a3 --- /dev/null +++ b/exiasaver.c @@ -0,0 +1,28 @@ +#include +#include + +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"); +}