#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Word
{
char sEnglish[20]; //英文单词
char sChinese[40]; //中文意思
char sWordKind[10]; //词性
struct Word* pNext; //指向下一个节点指针
};
struct Word* pShead = NULL;//链表头指针
struct Word* pSSearch;//用于查询信息的指针
struct Word* pSFormer;//用于保存前一个节点的指针
struct Word* pSToThis;//用于指向新开辟的节点
//===============================菜单函数================================
char Menu()
{
char nChoose;
printf("-------------------------------------------------------------\n");
printf("| 欢迎使用英汉辞典 |\n");
printf("-------------------------------------------------------------\n");
printf("| |\n");
printf("| a.单词查询 |\n");
printf("| b.添加单词 |\n");
printf("| c.退出系统 |\n");
printf("| |\n");
printf("|请选择功能: |\n");
scanf("%c", &nChoose);
return nChoose;
}
//==============================查询单词函数============================
void Search()
{
char nChoose;
int nCheck = 0;//用于判断是否查询到单词
char sSearchWord[20];//需要查询的单词
【数据结构课设】英汉互译词典
最新推荐文章于 2021-11-21 15:44:02 发布