【数据结构课设】英汉互译词典

#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];//需要查询的单词
	
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值