You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
908 B
46 lines
908 B
#include<stdio.h>
|
|
struct dic_info
|
|
{
|
|
char English[40];
|
|
char Chinese[100];
|
|
}word;
|
|
void enter()
|
|
{
|
|
}
|
|
void add()
|
|
{
|
|
}
|
|
void Delete()
|
|
{
|
|
}
|
|
void Edit()
|
|
{
|
|
}
|
|
int main(void)
|
|
{
|
|
int choice;
|
|
do
|
|
{
|
|
printf("\n\t ==============================");
|
|
printf("\n\t *欢迎使用有限规模电子英汉词典*");
|
|
printf("\n\t ==============================\n");
|
|
printf("\n\t ***********菜单显示***********\n");
|
|
printf("\n\t ********【1】词条查找*********\n");
|
|
printf("\n\t ********【2】词条增词*********\n");
|
|
printf("\n\t ********【3】词条删除*********\n");
|
|
printf("\n\t ********【4】词条修改*********\n");
|
|
printf("\n\t ********【0】退出词典*********\n");
|
|
printf("请选择你要进行的功能:");
|
|
scanf("%d",&choice);
|
|
switch(choice)
|
|
{
|
|
case 1:enter();break;
|
|
case 2:add();break;
|
|
case 3:Delete();break;
|
|
case 4:Edit();break;
|
|
}
|
|
}
|
|
while(choice!=0);
|
|
return 0;
|
|
}
|