From 271a0a7c82b4b33f228248e6cec25551829cf146 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 7 Jan 2019 09:16:01 +0800 Subject: [PATCH] first commit --- 究极翻译.cpp | 79 +++++++++++++++++++-------------------------- 究极翻译.exe | Bin 167069 -> 167069 bytes 翻译文档31.txt | Bin 2400 -> 3200 bytes 3 files changed, 34 insertions(+), 45 deletions(-) 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 821773ab9de003edc4582f4dc46a7b9e25c5fd38..0cf5c52caf48e0840f960bd0ed750a7f8e2950e6 100644 GIT binary patch delta 2502 zcmY*beNa@_6~E^$3&^rxEG!UoSrlTVD5wDh+pw6i-5BDSPMfI3Q33{tibg;?(TE10 zVck+$Z}92(8UIjYV}!oeM>0Yd3z}xMs2MZU`iYaI3pmx8B*qlY_MG>Y#NL^G_jk_k zcg{WMp0_)@e^1>0J#lR<&U7KY{5aN=mI}CrnKqyS|~@SUx(D%CkzpQtA?B zgZ-!58wz4eLu*BcBQ+%>74O3*c~Rz33Q5;$zCiKy==S=ID=Rct$xL*Gk_pc} z6_8+xrd3!@IXd&j4lyAD8?=Xom_RhE1 zS*!UdQBI^nMfhluN3|-vfF=A8sdqMJptXlmzQ*845DmOiX6~NgLCBa-dm^jN;s#Z22y``(*Se;$p|-AJ zHG^-KE-s81>+n7B5X+|0cMuos%Z}D=Y9?LP{i6}uJO&aY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