版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、international college, zhejiang university of technology zhang xinyithe design and implementation of a mini electronic dictionarya thesisin computer sciencepresented tothe faculty of thecollege of international zhejiang university of technologyin fulfillmentof the requirements for the degreebachelor
2、 of science in computer sciencebyzhang xinyijune, 2010on my honor as a university student, on this assignment i have neither given nor received unauthorized aid as defined by the honor guidelines for papers in zjut courses._ _approved _ approved _53摘要随着社会的发展,在人们生活中学习外语变得越来越重要。 现在许多文件和资料都是电子版,所以更多人喜欢
3、通过电子工具学习外语。为了给外语学习者更多便利以及实现无纸化的教育,基于以上的原因开发了这款迷你电子词典。这个系统是基于电脑桌面程序的电子词典,它主要实现单词查询、背单词和生词本管理三个功能。查询功能提供英语单词查询中文意思以及中文词组查询英语单词;把单词添加到用户定义的生词本;浏览已查询单词的记录。背单词功能部分有两个子功能-测试和猜词游戏。测试是单选题,并且测试结束后可以查看正确率。猜词游戏是用户根据英文单词的发音和解释,然后通过软键盘拼写正确的英文单词。生词本是根据用户需求将单词分类,方便用户记忆与复习。本系统运用mfc 应用架构,使用c+语言编写。使用windowsxp作为开发平台,开
4、发环境是微软visual c+ 6.0,后台数据库是sql server 2000。关键词 词条查询,生词管理,mfc,abstract with the development of society, learning foreign language is becoming more and more important in persons life. nowadays many documents and materials are electronic, so more and more people like learning foreign language through el
5、ectronic tools. in order to make language learner convenient and achieve no-paper education, the development of a mini electronic dictionary is proposed in this thesis.this system is based on the desktop electronic dictionary and mainly achieves word inquiry, word recitation and notebook management.
6、 the inquiry function provides the translation between english words and chinese words. it also provides that add english words into user-defined lexicon and review the words which he has inquired. the word recitation part has two sub functions-tests and guess game. the test provides questions with
7、multiple choices and can calculate the result at the end of the test. the guess game is according to the pronunciation and explanation of english words and then spells the english word by soft keyboard. the notebook management classifies the words depending on user. the system uses mfc application f
8、ramework through c+ language. the development platform is windowsxp and development environment is microsoft visual c+ 6.0. the background database is sql server 2000.keywords:lemma inquiry, notebook management, mfc 目录摘要i英文摘要ii第一章 概述11.1课题背景11.2现状.21.3 研究意义31.4 工程目标4第二章 应用技术介绍52.1 编程语言概述52.2 微软基础类概述
9、62.3 数据库概述72.4 开放数据库互连概述8第三章需求分析93.1 目标93.2 描述103.3 性能需求113.4 功能需求123.4.1 查询单词133.4.2 背单词133.4.3 生词本管理133.5 环境需求143.5.1 硬件143.5.2 软件14第四章 系统设计154.1 原则154.2 功能结构设计164.3 数据库设计164.3.1 数据库设计原则174.3.2 表设计174.3.3 数据库实体联系图20第五章 系统实现215.1 数据库配置与连接215.2 单词查询模块235.2.1 介绍235.2.2 状态图245.2.3 模块实现245.3 背单词模块285.3
10、.1 介绍285.3.2 状态图285.3.3 测试模块实现295.3.4 猜词游戏模块325.4 生词本模块345.4.1 介绍345.4.2 用户定义词库管理模块实现345.4.3 生词管理模块实现385.5 其他415.5.1 电子时钟415.5.2 按钮贴图435.5.3 网上冲浪445.5.4 历史记录455.5.5 文件导入导出47第六章 总结50参考文献51table of contentschinese abstractiabstractiichapter 1 overview11.1 background information11.2 current situation21
11、.3 project significance31.4 objective of the project4chapter 2 introduction of technology52.1 overview of programming language52.2 overview of microsoft foundation classes62.3 overview of database72.4 overview of open database connectivity8chapter 3 requirements analysis93.1 goal93.2 description103.
12、3 performance requirements113.4 function requirements123.4.1 word inquiry133.4.2 word recitation133.4.3 notebook management133.5 environment requirements143.5.1 hardware143.5.2 software14chapter 4 system design154.1 principle154.2 function structure design164.3 database design164.3.1 database design
13、 principle174.3.2 table design174.3.3 database entity relationship diagram20chapter 5 system implementation215.1 database configuration and connection215.2 word inquiry model235.2.1 introduction235.2.2 state diagram245.2.3 implement model245.3 word recitation model285.3.1 introduction285.3.2 state d
14、iagram285.3.3 implement test model295.3.4 implement guess game model325.4 notebook model345.4.1 introduction345.4.2 implement user-defined lexicon management model345.4.3 implement new words management model385.5 others415.5.1 electronic clock415.5.2 button texture435.5.3 surf the internet445.5.4 hi
15、story of dictionary455.5.5 import and export file47chapter 6 conclusion50references51chapter 1 overview the development of science and technology changes our lives styles and our learn methods. it is special for learning foreign languages. in the past, people use the paper dictionary, books or radio
16、 to learn languages. but now the electronic dictionary (ed) and the computer can replace all of old tools. the ed is a convenient tool to solve language problem. in modern society, the international communications are frequently. people need to deal with documents which are written in different lang
17、uages and students have to learn foreign language. in the past, people are always using paper dictionary when they find the unknown words. this method spends much time on searching and needs to carry different language dictionaries. the electronic dictionary not only inquires words, but also pronoun
18、ces words. so it is suit for the information age.1.1 background informationed combines the computer science with the linguistics. the use of the computer in linguistics, as compared to for example the natural sciences and engineering, was however a gradual process 1. in our country, ed also originat
19、ed from the study of the natural language processing (nlp) and the machine translation in our country at the start of the 1970s. the academia sinica established the monographic study of the notebook of machine read dictionary in the 1980s in taiwan, which mainly studies chinese machine read dictiona
20、ry. in mainland china, the study had made progress in the phasal sense which included the analysis of sentences and the understanding of sentences and phrases by the mid'1980s. the english chinese handheld electronic dictionaries (instant-dict ec-1000) which were really suitable for chinese-spea
21、king english learners came out in our country in the end of 1989 2, 3. now if you have an ed on computer, you could get the meaning exactly and quickly. not only can it do on-time translation, be consulted in a quick, accurate, and detailed way, but also it contains a lot of appendixes which ca
22、n help users to enlarge their ranges of knowledge. 1.2 current situationthe design of accurate translation for ed is difficult for computer software developers. in many cases, the actual translation of ed does not understand the words depending on the occasion and just gets together the meaning
23、s of word in the sentence. while natural language processing will grow into a vital industrial technology in the next five to 10 years. but this growth depends on the development of large linguistic databases that capture natural language phenomena 4,5. another important theme for future work is dev
24、elopment of large knowledge bases that are shared widely by different groups. one promising approach to such knowledge bases draws on natural language processing and linguistic knowledge.toshio yokoi considers the computer should understand the human learning. when people come across a word they can
25、not define, they consult dictionaries that explain the meaning of the word through simple phrases or usage examples. however, such dictionary entries do no more than provide an occasion for initiating the understanding of a words meaning. human users must still search a vast amount of commonsense kn
26、owledge in their brains, perform complex reasoning, and decide on a satisfactory meaning for the word. dictionaries created for human users assume such human capabilities. computers lack such capabilities, although, to a degree, they need the same capabilities. electronic dictionaries are designed t
27、o meet this need for computers. but because human commonsense knowledge and the ability to handle such knowledge are not well understood, only the capabilities relating to language can be provided to computers 6.although electronic dictionaries enable computers to process and understand language, di
28、ctionaries and data compiled for humans remain an important foundation for research and development.1.3 project significancewhen reading articles or documents written in foreign languages, we may encounter words that we do not know the meanings or we cannot read. traditionally, we look up the words
29、in a dictionary according to the alphabetical order. but now, with an ed in the computer, one can not only get the meaning of words exactly and quickly, but also can receive a lot of other information, such as pronunciation, example sentences and synonym of the word. most eds have additional functio
30、ns to help user recite or review words. so it provides people with a more convenient and efficiency way to study foreign language.1.4 objective of the projectmy mini electronic dictionary is an application that helps people to learn english, and it can make the learning process comfortable and inter
31、esting. the more functions and friendly interface electronic dictionary has, the more popular it is. the system has three main functions, i.e. inquire of words meaning, reciting words, and the notebook management. the interface of the mini electronic dictionary will be single interface, multiple win
32、dow and multimedia application. the whole project has divided into several sections:(1) requirements analysis(2) system design(3) programming(4) testing(5) commissioningchapter 2 introduction of technologyuse c+ mfc to create windows application and use odbc to connect database. these implement func
33、tions - inquiry, test, game and management.2.1 overview of programming languagec+ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language. it is regarded as a "middle-level" language, as it comprises a combination of both high-level and low-level la
34、nguage features 7.(1) statically typed: type checking is performed during compile-time as opposed to run-time.(2) free-form: the positioning of characters on the page in program text is not significant.(3) multi-paradigm: supports more than one programming paradigm.(4) compiled: implementations are
35、typically compilers and not interpreters.as one of the most popular programming languages ever created, 8 c+ is widely used in the software industry. some of its application domains include systems software, application software, device drivers, embedded software, high-performance server and client
36、applications, and entertainment software such as video games. visual c+ is much more than a compiler. it is a complete application development environment that, when used as intended, lets you fully exploit the object oriented nature of c+ to create professional windows applications 9.2.2 overview o
37、f microsoft foundation classesthe microsoft foundation class library (also microsoft foundation classes or mfc) is a library that wraps portions of the windows api in c+ classes, including functionality that enables them to use a default application framework. classes are defined for many of the han
38、dle-managed windows objects and also for predefined windows and common controls.mfc is a large and extensive c+ class hierarchy that makes windows application development significantly easier. mfc is compatible across the entire windows family. as each new version of windows comes out, mfc gets modi
39、fied so that old code compiles and works under the new system. mfc also gets extended, adding new capabilities to the hierarchy and making it easier to create complete applications 10.the advantage of using mfc and c+ - as opposed to directly accessing the windows api from a c program-is that mfc al
40、ready contains and encapsulates all the normal "boilerplate" code that all windows programs written in c must contain. programs written in mfc are therefore much smaller than equivalent c programs. on the other hand, mfc is a fairly thin covering over the c functions, so there is little or
41、 no performance penalty imposed by its use. it is also easy to customize things using the standard c calls when necessary since mfc does not modify or hide the basic structure of a windows program 10.2.3 overview of databasea database is a collection of information that is organized so that it can e
42、asily be accessed, managed, and updated. databases consist of software-based "containers" that are structured to collect and store information so users can retrieve, add, update or remove such information in an automatic fashion. database programs are designed for users so that they can ad
43、d or delete any information needed. the structure of a database is tabular, consisting of rows and columns of information. its merit is reduced redundancy, integrated data, integrity and the protection of data security and privacy.in this project, i use microsoft sql server 2000 (sql server) as the
44、database management system (dbms). sql server is a relational model database server produced by microsoft and has client/server model 11. its primary query languages are t-sql and ansi sql. sql server is the widely useful dbms and has several advantages as follows:(1) usabilitythe interface of sql s
45、erver is graphic interface. user can understand the function of each button and menu easily.(2) dynamic data storage sql server uses the advantage dynamic manager. the size of database can be expanded or reduced with the data size.(3) tight integrationsql server system and operating system are tight
46、 integration. it operates the relational model database server on the windows operating system.2.4 overview of open database connectivityin computing, open database connectivity (odbc) provides a standard software api method for using database management systems (dbms). the designers of odbc aimed t
47、o make it independent of programming languages, database systems, and operating systems.the microsoft open database connectivity (odbc) interface is a c programming language interface that makes it possible for applications to access data from a variety of database management systems (dbmss). odbc i
48、s a low-level, high-performance interface that is designed specifically for relational data stores 11.the odbc interface allows maximum interoperabilityan application can access data in diverse dbmss through a single interface. moreover, that application will be independent of any dbms from which it
49、 accesses data. users of the application can add software components called drivers, which interface between an application and a specific dbms 11.chapter 3 requirements analysisrequirement analysis solves the problem of what to do. so i need to understand all requirements of users completely and ex
50、press them accurately. requirement analysis is critical to the success of a project development. it must be documented, actionable, measurable, testable, related to identified business needs or opportunities, and defined to a level of detail sufficient for system design. it is also important to deve
51、lopment of the mini electronic dictionary.3.1 goal requirement analysis in systems engineering and software engineering, encompasses those tasks that go into determining the needs or conditions to meet for a new or altered product, taking account of the possibly conflicting requirement of the variou
52、s stakeholders, such as beneficiaries or users 12. the software development project is to achieve the physical model of the goal system. as the reference of the goal system, the task of requirement analysis is based the current requirement and export the logical model of the goal system 13. it solve
53、s what to do of the goal system. the process shows on figure 3-1.figure 01: the goal system modelmodelingunderstand exportabstractioncurrent requirementphysical modellogical modelgoal systemphysical modellogical modelhow to do? what to do? instantiationspecification express 3.2 descriptionthe task o
54、f requirement development is to understand all requirements of users completely and express them accurately. during the requirement analysis, i should divide into some functions which must be achieved and some functions which will be achieved or required in the future. during the design process, i s
55、hould prepare the expansion and modification of the application in the future, so that it can conveniently expand and modify when it is required. define the product requirement and get user approbation. the process of the whole flow chart is shown in figure 3-2 14. figure 02: flow chart of requireme
56、nt process3.3 performance requirementsthe ed is multiple function software for people learning. now therefore, in consideration of the total and future development and user requirement, the system requires as follows:(1) accuracythis is the most important index of the system. the content of the ed m
57、ust be accurate, or the system will lose the trust of user. (2) scalability the application can change according to users requirement. on one hand, the application can extend the capacity of the ed. on the other hand, if user needs more information about words, he can search the internet.(3) usability the installation and configuration of the application are simple and convenient. it is comfortable for user, when he applies this application.(4)
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 辽宁省地基基础施工安全措施专项题库及答案
- 2026年动漫设计师职业技能水平考核试题及答案解析
- 2026汽车零部件供应链风险预警管理机制与质量控制方案设计
- 2026葡萄酒酿造业市场需求分析及品质安全规划研究
- 2026人工智能赋能产业转型升级现状评估发展路径指南
- 2026生物医药创新市场趋势分析及投资价值评估研究报告
- 2026年度空侧控制区作业资格准入测试题及答案
- 2026事业单位工勤技能-广西-广西地质勘查员一级(高级技师)历年参考题库含答案详解
- 2026事业单位工勤技能-广东-广东食品检验工二级(技师)历年参考题库含答案详解
- 2026事业单位工勤技能-广东-广东殡葬服务工五级(初级工)历年参考题库含答案详解
- 2026年大队委选拔笔试题目及答案
- 沉浸式数字艺术展策展、运营及衍生品开发指南
- 2026年山西中考物理真题
- 2026年智能油田决策支持系统:技术创新与实践应用
- 2025年东莞初中音乐考编笔试及答案
- 2026年及未来5年市场数据中国聚醚酰亚胺(PEI)行业市场需求预测及投资战略规划报告
- MEMS传感器课件教学课件
- 小学安全使用家电课件
- 漏水维修知识培训课件
- (正式版)DB65∕T 4907-2025 《自治区本级行政事业单位办公设备与家具配置规范》
- T/CNSS 006-2020学龄前儿童集体餐营养要求
评论
0/150
提交评论