Commit e67ab31b9e196c339b033f2374f31acce7114484
1 parent
b040f3fa
update
Showing
1 changed file
with
1 additions
and
32 deletions
Show diff stats
projet.c
1 | -#include <stdio.h> | |
2 | -#include <stdlib.h> | |
3 | -#include <string.h> | |
4 | -#include <stdbool.h> | |
5 | -#include <ctype.h> | |
6 | - | |
7 | -typedef struct noeud { | |
8 | - int valeur; | |
9 | - struct noeud *lettre[28]; | |
10 | -} noeud ; | |
11 | - | |
12 | -typedef struct{ | |
13 | - noeud *dictionnaire[26]; | |
14 | -} dico; | |
1 | +#include "projet.h" | |
15 | 2 | |
16 | 3 | void creer_et_initialiser_le_noeud(noeud ** parbre, int v){ |
17 | 4 | *parbre=malloc(sizeof(noeud)); |
... | ... | @@ -109,21 +96,3 @@ void desallouer_dictionnaire(noeud*arbre[26]){ |
109 | 96 | desallouer_arbre(arbre[i]); |
110 | 97 | } |
111 | 98 | |
112 | - | |
113 | - | |
114 | - | |
115 | -int main (){ | |
116 | - dico d; | |
117 | - initialiser_dictionnaire(d.dictionnaire); | |
118 | - insertion_dictionnaire(d.dictionnaire); | |
119 | - printf("-----------------------------------------------------------\n"); | |
120 | - printf("Bienvenue dans le correcteur orthographique de HAROUN V1.0\n"); | |
121 | - printf("-----------------------------------------------------------\n"); | |
122 | - printf("\nvoici les fautes dans le texte: \n \n"); | |
123 | - corriger_texte(d.dictionnaire); | |
124 | - desallouer_dictionnaire(d.dictionnaire); | |
125 | - printf("\n"); | |
126 | - | |
127 | - return 0; | |
128 | -} | |
129 | - | ... | ... |