Commit 6e68d77916fb082844fd63874d97da93aee39867

Authored by tvieuble
1 parent 60787f42

correction sur projetfinalaccent2.c

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
projetfinalaccent2.c
... ... @@ -184,7 +184,6 @@ void correction_mot(struct node tab_arbre_prcp[]) {
184 184 while((verif == 1) && (motLu[i] != '\0')) {
185 185 i += 1;
186 186 if((motLu[i] == '.') || (motLu[i] == ',') || (motLu[i] == ';') || (motLu[i] == ':') || (motLu[i] == '!') || (motLu[i] == '?')) motLu[i] = '\0';
187   - wprintf(L"lettre lue %d\n", motLu[i]);
188 187 localisationArbre = test_mot(motLu[i], localisationArbre, &verif);
189 188 }
190 189 if(verif == 0) {
... ... @@ -206,7 +205,7 @@ void desalocationArbre(struct cell** pL) {
206 205  
207 206 void desalocationTableauArbre(struct node tab_arbre[]) {
208 207 int i = 0;
209   - for(wchar_t u = 'a'; u < A; u++) {
  208 + for(wchar_t u = 'a'; u <= A+5; u++) { //A+5 car ajout de 5 caractères de ponctuation en plus des lettres
210 209 desalocationArbre(&tab_arbre[i].listeFils);
211 210 i++;
212 211 }
... ...