char word[30];
FILE *f = fopen("E:\\c.txt","r");
while(fscanf(f,"%s",word)==1){puts(word);
addWord(&tree, word);
}
for other methods of sscanf, to be continued.
char word[30];
FILE *f = fopen("E:\\c.txt","r");
while(fscanf(f,"%s",word)==1){}
for other methods of sscanf, to be continued.