【正文】
。因此我們用字符串來定義,可以增強(qiáng)行編輯器的應(yīng)用,增強(qiáng)可讀性,加快人們的編輯文本的效率,從而推進(jìn)社會的發(fā)展。當(dāng)然,這些編輯每次都只能針對一行?,F(xiàn)在常見的編輯器,都是通過移動光標(biāo),來選取要編輯的文本段落,與此不同的是,行編輯只能對“當(dāng)前行”進(jìn)行編輯。命令和文本,以及編輯器的相應(yīng)輸出,會根據(jù)他們的輸入順序,從底部開始逐一顯示。輸入、編輯、文檔顯示并不能同步地進(jìn)行。現(xiàn)在看來當(dāng)然非常地老式,這種編輯器起源于操作員還使用電傳打字機(jī)的年代,也就是一個打印機(jī)連著鍵盤,因為沒有顯示器,也就無法在文檔中移動光標(biāo)。 text?,F(xiàn)利用字符串來定義,設(shè)計并實現(xiàn)了一個簡單行編輯程序,具備行編輯器的行插入,行刪除等基本功能。輸入、編輯、文檔顯示并不能同步地進(jìn)行。限制這些操作以行為單位進(jìn)行的編輯程序稱為行編輯程序?,F(xiàn)利用字符串來定義,設(shè)計并實現(xiàn)了一個簡單行編輯程序,具備行編輯器的行插入,行刪除等基本功能。允許輸入出錯時發(fā)現(xiàn)錯誤并及時更正。編輯的文本文件可能很大,全部讀入內(nèi)存的做法既不經(jīng)濟(jì)也不總能實現(xiàn)。行編輯器只能從事最簡單的輸入輸出。摘 要文本編輯程序是利用計算機(jī)進(jìn)行文字加工的基本軟件工具,實現(xiàn)對文本文件的插入、刪除等修改操作。限制這些操作以行為單位進(jìn)行的編輯程序稱為行編輯程序。輸入、編輯、文檔顯示并不能同步地進(jìn)行。一種解決辦法是逐行地編輯,任何時刻只把待編輯文件的一行放在內(nèi)存,稱為活區(qū)。一般而言,用戶無法直接輸入文本,而只能在文本終端上通過簡要的命令,對已有的文檔進(jìn)行添加或編寫。關(guān)鍵詞:行編輯器;文本;字符串Abstract文本編輯程序是利用計算機(jī)進(jìn)行文字加工的基本軟件工具,實現(xiàn)對文本文件的插入、刪除等修改操作。行編輯器只能從事最簡單的輸入輸出。一般而言,用戶無法直接輸入文本,而只能在文本終端上通過簡要的命令,對已有的文檔進(jìn)行添加或編寫。Text editor is the basic software tools, the use of puters 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 mands 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。 string目 錄 1 1 2 2 3 3 存儲結(jié)構(gòu)的定義 4 4 5 5 5 7 7()子程序設(shè)計 7()子程序的設(shè)計 10(20)子函數(shù)設(shè)計 12()子程序設(shè)計 13 16 165總結(jié) 21參考文獻(xiàn) 22致 謝 23行編輯器是文本編輯器的一種,針對行進(jìn)行編輯。行編輯器只能從事最簡單的輸入輸出。一般而言,用戶無法直接輸入文本,而只能在文本終端上通過簡要的命令,對已有的文檔進(jìn)行添加或編寫。雖然命令一般會顯示被修改的行,但如果要將行連同文檔中的上下文顯示,則需要另外單獨的命令。一般也可以在行內(nèi)進(jìn)行上下文匹配,或者選擇特定行,以決定哪部分文檔將被編輯或顯示。行編輯器就只能一行一行的編輯,不能出錯,一出錯就得重來。這就是其重要意義。在本課程設(shè)計中,系統(tǒng)開發(fā)平臺為Windows2000,程序設(shè)計語言為C語言,程序運行平臺為Windws 98/2000/X