该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
}//the end of while(...)
}
//the 1st dictionary
void FindChinese()
{
char *p, eword[20] = "r";
p=eword;
while(1)
{
int f=0;
printf("Enter the English word you want to look up:(enter u to go upper lever)\n");
scanf("%s",p);
//should be checked here.........
if(strcmp(p,"u")==0) break;//go upper
if(f==0 && (strcmp(p,"int")==0)) {f=1; printf("\n%s: 整形\n",p);}
if(f==0 && strcmp(p,"float")==0) {f=1; printf("\n%s: 浮点型\n",p);}
if(f==0 && strcmp(p,"sunny")==0) {f=1; printf("\n%s: 阳光灿烂的\n",p);}
//more words here^_^
//more words here^_^ 链接词库 | 接口确定后需要继续修改...
//more words here^_^
if(f==0) printf("\nsorry, can't find the word\n");
}
}
//the 2nd dictionary
void FindEnglish()
{
char *p, cword[20] = "r";
p=cword;
while(1)
{
int f=0;
printf("请输入您想查找的中文词语:(输入u返回上层)\n");
scanf("%s",p);
//should be checked here.........
if(strcmp(p,"u")==0) break;//go upper
if(f==0 && (strcmp(p,"整形")==0)) {f=1; printf("\n%s: int\n",p);}
if(f==0 && strcmp(p,"浮点型")==0) {f=1; printf("\n%s: float\n",p);}
if(f==0 && strcmp(p,"长整型")==0) {f=1; printf("\n%s: long\n",p);}
//more words here^_^
//more words here^_^ 链接词库 | 接口确定后需要继续修改...
//more words here^_^
if(f==0) printf("\n很抱歉,没有找到这个中文词条\n");
}
}