From 707d07fbbd366cdb482507b1eb77a7811a295acd Mon Sep 17 00:00:00 2001 From: Jeremy Date: Fri, 5 Dec 2025 18:04:23 -0500 Subject: [PATCH] Ajout docu sur les erreurs --- README.md | 14 ++++++++------ mesFonctions.cpp | 11 +++++------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 7a41dc4..01aab31 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,13 @@ # Taxon -# Add to VS 2022 - -Install GIT for Windows : https://git-scm.com/install/windows +## Codes d'erreur +Erreur 1 ``` -git config credential.helper wincred -git config user.email 'empty@zkd.ca' -git config user.name 'Nom du coequipier' +Cette erreur peut survenir lorsqu'un fichier n'arrive pas à s'ouvrir ou se fermer. +``` + +Erreur 2 +``` +Cette erreur peut survenir lors d'un problème dans l'affichage des lettres. ``` \ No newline at end of file diff --git a/mesFonctions.cpp b/mesFonctions.cpp index a2b5fdb..eec2240 100644 --- a/mesFonctions.cpp +++ b/mesFonctions.cpp @@ -213,8 +213,7 @@ void afficherMotPlayer(string lettrePlayer, int positionLettre) fstream monFlux; string nomFichier; - HANDLE hconsole = GetStdHandle(STD_OUTPUT_HANDLE);//pour la couleur - + HANDLE hconsole = GetStdHandle(STD_OUTPUT_HANDLE); //Pour la couleur lettrePlayer.insert(0, "Alphabet/"); lettrePlayer.append(".txt"); @@ -227,19 +226,19 @@ void afficherMotPlayer(string lettrePlayer, int positionLettre) void printLettre(fstream& monFlux, int positionLettre) { int couleurLettre; - if (positionLettre == 1 /*Lettre bien placé*/) + if (positionLettre == BONNE_PLACE) { couleurLettre = 10; } - else if (positionLettre == 2 /*Lettre mal placé*/) + else if (positionLettre == MAUVAIS_PLACE) { couleurLettre = 06; } - else if (positionLettre == 3 /*Lettre non présente*/) + else if (positionLettre == PAS_LA) { couleurLettre = 8; } - else /*Pas une lettre*/ + else { exit(2); }