Blame view

main.c 343 Bytes
03168857   mertz   create tree op
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  #include "tree.h"
  
  int main()
  {
    FILE* fp = fopen("american-english","r");
    //FILE* fp = fopen("dico_test","r");
    
    if(fp == NULL) return 1 ; //File is not readable
    
    struct node* tab[26];
    for(int i=0;i<26;i++)
      {
        tab[i]=NULL;
      }
    
    load_tree(fp,tab);//supprimer la case
    
    printf("Loading done!\n");
    
    return 0;
  }