英汉词典程序设计

来源:百度知道 编辑:UC知道 时间:2024/06/28 13:06:27
哪位大虾能告诉我英汉词典课程设计怎么做.能给我些资料吗?告诉我大概思想算法也可以啊!在这先谢谢啊!满意的话还会追加积分

我用VC写了一个
比较简单的
// 词典.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

#include <windows.h>
#include <stdio.h>
#include <malloc.h>
#include <winbase.h>
#include <process.h>

void Search()
{
char temp[100];
char buffer[2];
char result[100];
printf("请输入要查询的单词:\n");
scanf("%s",&temp);
buffer[0]=temp[0];
buffer[1]='\0';
int ret=GetPrivateProfileString(buffer,temp,0,result,100,"./date.ini");
if(ret>0)
printf("%s\n\n\n\n\n",result);
else
printf("对不起,没有您要查找的单词.\n\n\n\n\n");
}

void InsertItem()
{
char temp[100];
char buffer[2];
char result[100];
printf("请输入要插入的单词:\n");
scanf("%s",&tem