Ajout docu sur les erreurs
This commit is contained in:
12
README.md
12
README.md
@@ -1,11 +1,13 @@
|
||||
# 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
|
||||
git config user.email 'empty@zkd.ca'
|
||||
git config user.name 'Nom du coequipier'
|
||||
Cette erreur peut survenir lors d'un probl<62>me dans l'affichage des lettres.
|
||||
```
|
||||
@@ -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<61>*/)
|
||||
if (positionLettre == BONNE_PLACE)
|
||||
{
|
||||
couleurLettre = 10;
|
||||
}
|
||||
else if (positionLettre == 2 /*Lettre mal plac<61>*/)
|
||||
else if (positionLettre == MAUVAIS_PLACE)
|
||||
{
|
||||
couleurLettre = 06;
|
||||
}
|
||||
else if (positionLettre == 3 /*Lettre non pr<70>sente*/)
|
||||
else if (positionLettre == PAS_LA)
|
||||
{
|
||||
couleurLettre = 8;
|
||||
}
|
||||
else /*Pas une lettre*/
|
||||
else
|
||||
{
|
||||
exit(2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user