//显示查询记录 void FQUE() { int n=1; system("cls"); printf("\t*****************************************\n"); printf("\t* 查询记录 *\n"); printf("\t*****************************************\n"); struct w_word *fque = (struct w_word *)malloc(sizeof(struct w_word)); FILE *fp7; fp7 = fopen("query log.txt", "r"); while (!feof(fp7)) { if(fread(fque, sizeof(struct w_word), 1,fp7) != NULL) { printf("********%d********\n", n); n++; printf("\t"); puts(fque->word_); printf("\t"); puts(fque->trans_); } } printf("\t**************回车键返回*****************\n"); system("pause"); return; }