2023年全國碩士研究生考試考研英語一試題真題(含答案詳解+作文范文)_第1頁
已閱讀1頁,還剩3頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、<p><b>  附件A</b></p><p><b>  編程語言</b></p><p>  編寫計算機程序有兩種常用方法:面向過程的程序設計和面向對象的程序設計。</p><p>  面向對象的程序設計是面向過程程序設計的一種擴展,在編寫程序時采用的方法有一些不同,用面向對象的方法考慮問題,首先把程序元

2、素看成是與現(xiàn)實世界中的具體對象相似的對象,然后對這些對象進行操作以得到期望的結果。編寫面向對象的程序包括創(chuàng)建對象和創(chuàng)建使用這些對象的應用程序。</p><p><b>  機器語言</b></p><p>  能被計算機操作系統(tǒng)直接運行的計算機程序稱為可執(zhí)行程序。可執(zhí)行程序是以機器碼的形勢表示的一系列非常簡單的指令。這些指令對于不同計算機的CPU而言是特定的,它們與硬

3、件有關。例如,英特爾“奔騰”處理器和Power PC微處理器芯片各自有不同的機器語言,要求用不同的代碼集來完成相同的任務。機器碼指令是從存儲單元取數(shù)據(jù),或將兩個存儲單元的內容相加(通常在CPU的寄存器中進行)。機器碼指令是二進制的——比特序列(0和1)。由于這些數(shù)字令人難以理解,所以計算機指令通常不是用機器碼來寫的。</p><p><b>  匯編語言</b></p><

4、;p>  與機器語言指令相比,匯編語言使用的命令較容易為程序員理解。每條機器語言指令在匯編語言中有等價的命令。例如,在匯編語言中,語句“MOV A,B”命令表示計算機把數(shù)據(jù)從一個單元復制到另一個單元,而及其代碼中同樣的指令是有一串16位的0和1組成的。一旦匯編語言程序編寫完畢,它就由另一個稱之為匯編起的程序轉換成機器語言程序。相對于機器語言而言,匯編語言速度快,功能強。可它仍然難以利用,因為匯編語言指令是有一系列抽象代碼組成的。另

5、外,不同的CPU使用不同的機器語言,因此需要不同的匯編語言(程序)。有時為了執(zhí)行特殊的硬件任務,或者為了加快高級語言程序的速度,匯編語言被插入到高級語言程序中。</p><p><b>  高級語言</b></p><p>  從機器語言進步到匯編語言,是語言達到了更先進的階段。同樣也正是這種進步導致了高級語言的發(fā)展。如果計算機能把簡便的符號翻譯成基本操作,為什么它就

6、不能完成其他文字類型的編碼功能呢?</p><p>  現(xiàn)在讓我們來看看所期望的高級語言應有的特點,以及怎樣將它們與機器碼和匯編語言進行比較。高級程序語言是這樣一種編程手段,它用規(guī)范化的術語來寫出一步步的程序步驟,執(zhí)行這些步驟時會用唯一確定的方式處理工作。高級語言經常針對某類特殊的處理問題而設計,例如,一些語言設計成適宜處理科學計算問題,另一些語言則更側重于文件處理的應用。</p><p>

7、;<b>  面向對象編程語言</b></p><p>  像C++這樣的面向對象程序語言(OOP)是以傳統(tǒng)的高級語言為基礎,但是它們能使程序員按照組合對象集方式而不是指令列表方式來進行思考。對象有許多性質,以圓為例,就有圓的半徑以及把圓畫到計算機屏幕上的命令。對象的類可以從其他對象類那里繼承屬性。例如,一個定義正方形的類能從定義長方形的類那里繼承諸如直角這樣的屬性。程序類的這種關系簡化了程

8、序員的工作,從而導致更多既可靠又高效的程序產生。</p><p><b>  附件B</b></p><p>  Programming Language</p><p>  There are two popular approaches to writing computer programs: procedural programming

9、(面向過程的程序設計) and object-oriented programming(面向對象的程序設計).</p><p>  Machine Language</p><p>  Computer programs that can be run by a computer’s operating system are called executables(可執(zhí)行程序). An ex

10、ecutable program is a sequence(序列) of(一系列的) extremely(非常地) simple instructions known as machine code. These instructions are specific to the individual computer’s CPU and associated(相關的) hardware; for example, Intel Pent

11、ium and Power PC microprocessor chips each have different machine languages and require different sets of codes to perform the same task. Machine code instructions are few in nu</p><p>  Assembly Language匯編語

12、言</p><p>  Assembly language uses commands that are easier for programmers to understand than machine-language commands. Each machine language instruction has an equivalent(等價的) command in assembly language.

13、 For example, in assembly language, the statement “MOV A,B”instructs(命令) the computer to copy data from one location to another. The same instruction in machine code is a string of (一串)16 0s and 1s. Once an assembly-lang

14、uage program is written, it is converted to a machine-language program by another pr</p><p>  High-Level Languages</p><p>  The improvement of machine language to assembly language set the stage

15、 for further advances. It was this improvement that led, in turn, to the development of high-level languages. If the computer could translate convenient symbols into basic operations, why couldn’t it also perform other c

16、lerical coding functions?</p><p>  Let us now look at the features we would expect to find in a high-level language and how they compare with machine code and assembly language.[3] A high-level programming l

17、anguage is a means of data in a uniquely defined way. It may bear no relation to any given computer but does assume that a computer is going to be used. The high-level languagees are often oriented toward a particular cl

18、ass of processing problems. For example, a number of languages have been designed to process problems of a s</p><p>  Object-Oriented Programming Languages</p><p>  Object-oriented programming(O

19、OP)languages like C++ are based on traditional high-level languages, but they enable a programmer to think in terms of collections of cooperating objects instead of lists of commands. Objects, such as a circle, have prop

20、erties such as the radius of the circle and the command that draws it on the computer screen.[4] Classes of objects can inherit features such as right angles from a class edfining rectangles. This set of programming clas

21、ses simplifies the progammer’s </p><p>  The long-term productivity of systems is enhanced by object-oriented program. Because of the modular nature of the code, programs are more malleable. This is particul

22、arly beneficial for applications that will be used for many years, during which company needs may change and make software modifications necessary. Software reliability can be improved by object-oriented programming. Sin

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 眾賞文庫僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論