diff --git a/究极翻译.cpp b/究极翻译.cpp index ea00449..5608bc9 100644 --- a/究极翻译.cpp +++ b/究极翻译.cpp @@ -8,7 +8,7 @@ struct word { char chinese[100]; char english[100]; - char liju[100]; + char mean[100]; char shuxing[100]; }; @@ -36,7 +36,8 @@ void fileclose(FILE *fp)// void shoucan(word temp)//ղصĵ { FP=fileopen(shoucanjia); - printf("%s %s %s %s ",temp.english,temp.chinese,temp.liju,temp.shuxing); + printf("\n%s %s %s %s ",temp.english,temp.chinese,temp.mean,temp.shuxing); + printf("ղسɹ"); fwrite(&temp,sizeof(temp),1,FP); fileclose(FP); @@ -57,16 +58,13 @@ void findlike()// word temp; int n=0,i=0; printf("PLEAES INPUT ENGLISH:"); - printf("룺"); - - printf("˸񣺲鿴ղؼڵ\n"); + printf("뵥ʣ"); + printf("˸˸鿴е\n"); while(1) { - int n=0; + int m=0; printf("\n\n\nһո "); - if(i==0) - printf("˸񣺲鿴е"); - else + if(i!=0) printf("˸˺һ"); char c=getch(); system("cls"); @@ -100,7 +98,7 @@ void findlike()// if(strcmp(temp.english,tempenglish)==0) { - printf("\n:%s Ӣ:%s :%s :%s\n",temp.chinese,temp.english,temp.liju,temp.shuxing); + printf("\n:%s Ӣ:%s :%s :%s\n",temp.chinese,temp.english,temp.mean,temp.shuxing); n=0; } else @@ -112,13 +110,13 @@ void findlike()// } else { - printf("\n:%s Ӣ:%s :%s :%s\n",temp.chinese,temp.english,temp.liju,temp.shuxing); - n=1; + printf("\nҪҵĿǣ\n:%s Ӣ:%s :%s :%s\n",temp.chinese,temp.english,temp.mean,temp.shuxing); + m=1; } } } fileclose(fp); - if(n==2) + if(n==2&&m==0) printf("\nno this"); } fileclose(fp); @@ -132,24 +130,22 @@ void change()// tempenglish[z]=0; char *res; word temp; - int n=0,i=0; + int n=0,i=0,m=0; printf(" 뵥ʣ"); -// printf("˸鿴еʡ"); + printf("˸鿴еʡ"); while(1) { - n=1; + m=0; printf("\n\n\nһո "); - if(i==0) - printf("˸񣺲鿴е"); - else + if(i!=0) printf("˸˺һ"); char c=getch(); stop: system("cls"); - if(c==49) - { - shoucan(temp);//ղصʣ!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - break; - } + // if(c==49) + // { + // shoucan(temp);//ղصʣ!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + // break; + // } if(c==32) break; printf(" 뵥ʣ"); @@ -175,16 +171,13 @@ void change()// } while(fread(&temp,sizeof(word),1,fp)) - {n=1; - - + { if(strcmp(temp.english,tempenglish)==0) { - printf("\n:%s Ӣ:%s :%s :%s\n",temp.chinese,temp.english,temp.liju,temp.shuxing); + printf("\n:%s Ӣ:%s :%s :%s\n",temp.chinese,temp.english,temp.mean,temp.shuxing); printf("\n-------1ղ"); printf("\n-------0޸"); printf("\n-------"); - n=1; c=getch(); if(c==49) { @@ -193,17 +186,16 @@ void change()// else if(c==48)//޸ĵ { // printf("%d",sizeof(word)); - // printf("%s %s %s %s ",temp.english,temp.chinese,temp.liju,temp.shuxing); + // printf("%s %s %s %s ",temp.english,temp.chinese,temp.mean,temp.shuxing); printf("\n޸ĺӢ:"); scanf("%s",temp.english); printf("޸ĺ˼:"); scanf("%s",temp.chinese); + printf("ӣ"); + scanf("%s",temp.mean); printf("ԣ"); scanf("%s",temp.shuxing); - printf("ӣ"); - fflush(stdin); - gets(temp.liju); - printf("%s %s %s %s ",temp.english,temp.chinese,temp.liju,temp.shuxing); + printf("%s %s %s %s ",temp.english,temp.chinese,temp.mean,temp.shuxing); // printf("%d",sizeof(word)); // printf("%d",sizeof(temp)); fseek(fp,-sizeof(word),SEEK_CUR); @@ -215,27 +207,25 @@ void change()// } else goto stop; - n=0; + } else { char *res = strstr(temp.english,tempenglish); - if(res == NULL) + if(res != NULL) { - n=2; - + printf("\nҪҵĿǣ\n:%s Ӣ:%s :%s :%s\n",temp.chinese,temp.english,temp.mean,temp.shuxing); + m=1; } else { - printf("\n:%s Ӣ:%s :%s :%s\n",temp.chinese,temp.english,temp.liju,temp.shuxing); - n=1; + n=2; } } - } fileclose(fp); - if(n==2) + if(n==2&&m==0) { printf("\nno this"); } @@ -253,11 +243,10 @@ stop: printf("\n"); scanf("%s",temp.english); printf("˵ʵģ"); scanf("%s",temp.chinese); + printf("䣺"); + scanf("%s",temp.mean); printf("ԣ"); scanf("%s",temp.shuxing); - printf("䣺"); - fflush(stdin); - gets(temp.liju); fwrite(&temp,sizeof(temp),1,FP); printf("ӳɹ"); fileclose(FP); diff --git a/究极翻译.exe b/究极翻译.exe index 821773a..0cf5c52 100644 Binary files a/究极翻译.exe and b/究极翻译.exe differ diff --git a/翻译文档31.txt b/翻译文档31.txt index fc9c81d..c6416da 100644 Binary files a/翻译文档31.txt and b/翻译文档31.txt differ