From 040b39067006b6d0df028fb94a44890110c385c5 Mon Sep 17 00:00:00 2001 From: Kyllian CHABANON Date: Thu, 10 Nov 2022 18:13:18 +0100 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20de=20l'affichage=20et=20de?= =?UTF-8?q?=20la=20lisibilit=C3=A9=20du=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ouverture.c | 8 ++++---- Sauvegarde.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Ouverture.c b/Ouverture.c index 6ab8883..cd2b4c5 100644 --- a/Ouverture.c +++ b/Ouverture.c @@ -16,7 +16,7 @@ int OuvertureMembres(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteA flot = fopen("membres.don", "r"); if (flot == NULL) { - printf("Pb d'ouverture du fichier membres.don\n"); + printf("Problème d'ouverture du fichier membres.don en lecture.\n"); return -1; } fscanf(flot, "%d%d%d%d", &NoCarte, &age, &pointsCarte, &CarteActive); @@ -24,7 +24,7 @@ int OuvertureMembres(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteA { if (i == tmax) { - printf("Tableau plein\n"); + printf("Tableau plein.\n"); fclose(flot); return -1; } @@ -47,7 +47,7 @@ int OuvertureActivitesJour(int tNbActivitesJour[], int tDate[], int tmax) jour = fopen("ActivitesJour.don", "r"); if (jour == NULL) { - printf("Pb d'ouverture du fichier ActivitesJour.don\n"); + printf("Problème d'ouverture du fichier ActivitesJour.don en lecture.\n"); return -1; } fscanf(jour, "%d%d", &Date, &nbActivitesJour); @@ -55,7 +55,7 @@ int OuvertureActivitesJour(int tNbActivitesJour[], int tDate[], int tmax) { if (i == tmax) { - printf("Tableau plein\n"); + printf("Tableau plein.\n"); fclose(jour); return -1; } diff --git a/Sauvegarde.c b/Sauvegarde.c index 123925d..a8767de 100644 --- a/Sauvegarde.c +++ b/Sauvegarde.c @@ -8,12 +8,12 @@ int Sauvegarde(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[ jour = fopen("ActivitesJour.don", "a"); if (flot == NULL) { - printf("Pb d'ouverture du fichier membres.don\n"); + printf("Problème d'ouverture du fichier membres.don en écriture.\n"); return -1; } if (jour == NULL) { - printf("Pb d'ouverture du fichier ActivitesJour.don\n"); + printf("Problème d'ouverture du fichier ActivitesJour.don en écriture.\n"); return -1; } for (i = 0; i < (nbelem - 1); i++)