Ajout docu sur les erreurs

This commit is contained in:
2025-12-05 18:04:23 -05:00
parent eb24e9279d
commit 707d07fbbd
2 changed files with 13 additions and 12 deletions

View File

@@ -1,11 +1,13 @@
# Taxon # Taxon
# Add to VS 2022 ## Codes d'erreur
Install GIT for Windows : https://git-scm.com/install/windows Erreur 1
```
Cette erreur peut survenir lorsqu'un fichier n'arrive pas <20> s'ouvrir ou se fermer.
```
Erreur 2
``` ```
git config credential.helper wincred Cette erreur peut survenir lors d'un probl<62>me dans l'affichage des lettres.
git config user.email 'empty@zkd.ca'
git config user.name 'Nom du coequipier'
``` ```

View File

@@ -213,8 +213,7 @@ void afficherMotPlayer(string lettrePlayer, int positionLettre)
fstream monFlux; fstream monFlux;
string nomFichier; 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.insert(0, "Alphabet/");
lettrePlayer.append(".txt"); lettrePlayer.append(".txt");
@@ -227,19 +226,19 @@ void afficherMotPlayer(string lettrePlayer, int positionLettre)
void printLettre(fstream& monFlux, int positionLettre) void printLettre(fstream& monFlux, int positionLettre)
{ {
int couleurLettre; int couleurLettre;
if (positionLettre == 1 /*Lettre bien plac<61>*/) if (positionLettre == BONNE_PLACE)
{ {
couleurLettre = 10; couleurLettre = 10;
} }
else if (positionLettre == 2 /*Lettre mal plac<61>*/) else if (positionLettre == MAUVAIS_PLACE)
{ {
couleurLettre = 06; couleurLettre = 06;
} }
else if (positionLettre == 3 /*Lettre non pr<70>sente*/) else if (positionLettre == PAS_LA)
{ {
couleurLettre = 8; couleurLettre = 8;
} }
else /*Pas une lettre*/ else
{ {
exit(2); exit(2);
} }