#include <stdio.h> #include <string.h> typedef struct _words { char body[40]; int cnt; } words; int main() { FILE *f1; words wordTab[100]; words temp; char word[40]; int i, j, n, x; f1=fopen("input.txt", "r"); if(f1==NULL) { printf("입력파일을 읽을 수 없습니다."); return 1; } i=0; fscanf(f1, "%s", wordTab[i].body); wordTab[i].cnt=1; i+=1; while(!feof(f1..