简单行编辑程序说明书探究.docx

摘 要 文本编辑程序是利用计算机进行文字加工的基本软件工具,实现对文本文件的插入、删除等修改操作。限制这些操作以行为单位进行的编辑程序称为行编辑程序。行编辑器只能从事最简单的输入输出。输入、编辑、文档显示并不能同步地进行。编辑的文本文件可能很大,全部读入内存的做法既不经济也不总能实现。一种解决办法是逐行地编辑,任何时刻只把待编辑文件的一行放在内存,称为活区。允许输入出错时发现错误并及时更正。一般而言,用户无法直接输入文本,而只能在文本终端上通过简要的命令,对已有的文档进行添加或编写。现利用字符串来定义,设计并实现了一个简单行编辑程序,具备行编辑器的行插入,行删除等基本功能。 关键词:行编辑器;文本;字符串 Abstract 文本编辑程序是利用计算机进行文字加工的基本软件工具,实现对文本文件的插入、删除等修改操作。限制这些操作以行为单位进行的编辑程序称为行编辑程序。行编辑器只能从事最简单的输入输出。输入、编辑、文档显示并不能同步地进行。一般而言,用户无法直接输入文本,而只能在文本终端上通过简要的命令,对已有的文档进行添加或编写。现利用字符串来定义,设计并实现了一个简单行编辑程序,具备行编辑器的行插入,行删除等基本功能。 Text editor is the basic software tools, the use of computers for word processing, to achieve the insertion of text files, delete modify operation. Restrictions on these operating units to conduct the editor called line editing process. Line editor can be engaged in the input and output of the most simple. The input, editing, document display can not synchronously. Edit text files can be quite large, all read into memory is neither economic nor can always achieve. One solution is to edit line by line, any moment only put a line to edit the file in memory, known as the living area. Allow the discovery of the error input errors and corrected in time. In general, the user cannot enter text directly, but only through the brief commands in the text terminal, the document may be added or write. We use the string to define, design and realize a simple line editor, with the line editor row insert, delete and other basic functions. Keywords: line editor; text; string 目 录  TOC \o 1-4 \h \z \u  HYPERLINK \l _Toc392859257 1.概述 1  HYPERLINK \l _Toc392859258 1.1设计背景 1  HYPERLINK \l _Toc392859259 1.2内容 2  HYPERLINK \l _Toc392859260 1.3要求 2  HYPERLINK \l _Toc392859261 2.概要设计 3  HYPERLINK \l _Toc392859262 2.1程序模块图 3  HYPERLINK \l _Toc392859263 2.2 存储结构的定义 4  HYPERLINK \l _Toc392859264 2.3功能函数 4  HYPERLINK \l _Toc392859265 2.4主函数 5  HYPERLINK \l _Toc392859266 3.详细设计 5  HYPERLINK \l _Toc392859267 3.1数据结构设计 5  HYPERLINK \l _Toc39285926

文档评论(0)

1亿VIP精品文档

相关文档