【正文】
dows 是類似于 Macintosh 的操作系統(tǒng),因為它也使用了鼠標和 GUI(圖形用戶界面),使用圖形或圖片 , 以幫助用戶用計算機系統(tǒng)操作計算機。用戶使用這兩個操作系統(tǒng)的人機界面友好 , 更容易使沒有學習過計算機的人使用這些好機器。 編程語言 在計算機科學中,編程語言是用來編寫可被計算機運行的一系列指令( 計算機程序)的人工語言。然而,自然語言不適合計算機編程,因為它們能引起歧義,也就是說它們的詞匯和語法結(jié)構(gòu)可以用多種方式進行解釋。 編程語言在復雜性和通用程度上大相徑庭。例如, FORTRAN 和COBOL 等編程語言是為解決某些普遍的編程問題類型而編寫的 —— FORTRAN 為了科學領(lǐng)域的應用,而 COBOL 為了商業(yè)領(lǐng)域的應用。其他的語言,譬如機器語言,是為一種特定型號的計算機系統(tǒng),甚至是一臺特定的計算機,在某些研究領(lǐng)域使用而編寫的。像 C、 PASCAL和 BASIC 這樣的語言就屬于這一范疇。低級編程語言或機器語言,是編程語言中最基礎(chǔ)的類型,能被計算機直接理解。高級語言是在計算機能夠理解和處理之前必須首先翻譯成機器語言的編程語言。匯編語言是中級語言,非常接近于機器語言,沒有其他高級語言所表現(xiàn)出的語言復雜程度,但仍然得翻譯成機器語言。機器語言中的一條指令通常告訴計算機 4 件事情:( 1)到計算機主存儲器(隨機訪問存儲器)的哪個位置去找一或兩個數(shù)字或者簡單的數(shù)據(jù)段;( 2)要執(zhí)行的一個簡 單操作,例如將兩個數(shù)字加起來;( 3)將這個簡單操作的結(jié)果存放在主存儲器的什么位置;以及( 4)到哪里找要執(zhí)行的下一條指令。直接用機器語言編程極端困難,因為指令是 1 和 0 的序列。 高級語言 高級語言是利用人類語言中的詞和句法的一套相對復雜的語句。這些編程語言允許更快地開發(fā)更龐大和更復雜的程序。因為這個原因,與用匯編語言編寫的程序比較起來,用高級語言編寫的程序可能運行的時間更長,占用的內(nèi)存更多。在匯編語言中,每條語句大致對應一條機器語言指令。在典型的匯編語言的語句中,把存儲寄存器 A 的內(nèi)容加到存儲寄存器 B 的內(nèi)容中這一命令,可以寫 成 ADD B, A。例如,對特定的比特進行操作,用匯編語言和機器語言都是可行的。當計算機的某個部分必須被直接控制時,如監(jiān)視器上的單個點或者流向打印機的單個字符,這時也使用匯編語言。當今最常見的高級語言是面向過程的語言。如果在程序的其他地方需要同樣的操作序列,可以使用一個簡單的語句調(diào)回這個過程。一個大程序可以通過將執(zhí)行不同任務的過程組合在一起而構(gòu)成。 函數(shù)式語言像對待數(shù)學函數(shù)一樣對待過程,并允許像處理程序中的任何其他數(shù)據(jù)一樣處理它們。函數(shù)式語言也允許變量 —— 在程序運行過程中可以被用戶指定和更改的數(shù)據(jù)符號 — —只被賦值一次。函數(shù)式語言的許多觀點已經(jīng)成為許多現(xiàn)代過程語言的關(guān)鍵部分。在面向?qū)ο蟮恼Z言中,用來編寫程序的代碼和程序處理的數(shù)據(jù),組合成叫做對象的單元。類的一個簡單例子就是書這個類。對象還有某些與其相關(guān)的功能,稱為方法。方法對對象中的數(shù)據(jù)執(zhí)行某個操作,然后將值返回給計算機。面向?qū)ο蟮恼Z言中所提供的這種結(jié)構(gòu),使面向?qū)ο蟮恼Z言對于復雜的編程任務非常有用。一個邏輯程序由一系列的事實與“如果??則”規(guī)則組成,來具體說明一系列事實如何可以從其他實事中推斷出來,例如: 如果 X 語句為真,則 Y 語句為假。許多人工智能程序使用這種語言編寫。程序中的一條語句是表達一個簡單意思的基本句子,其目的是給計算機一條基本指令。程序員利用語句來操作編程語言的常見成分,如變量和宏(程序中的小型程序)。變量在程序中可以賦予不同的值。在許多編程語言中,一種關(guān)鍵的數(shù)據(jù)類型是指示字。 表達式是語句的一段,描述要對一些程序變量執(zhí)行的一系列運算,如 X+Y/Z,其中 X、 Y 和 Z 為變量,運算方法為加和除。 過程與函數(shù)語句將某些代碼塊定義為以后可在程序中返回的進程或函數(shù)。許多編程語言也容許叫做宏的小型翻譯程序。 歷史 編程語言幾乎可以追溯到 20 世紀 40 年代數(shù)字計算機發(fā)明之時。最早的過程語言是在20世紀 50年代末到 20世紀 60年代初開發(fā)的: FORTRAN語言由約翰?巴克斯創(chuàng)造,然后由格雷斯?霍珀創(chuàng)造了 COBOL 語言。這 3 種語言今天仍在廣泛使用,但經(jīng)歷過大量修改。邏輯語言在 20 世紀 70 年代中期隨著 PROLOG 語言的推出而變得廣為人知; PROLOG 語言是一種用于編寫人工智能軟件的語言。 SMALLTALK 語言是一種具有高度影響力的面向?qū)ο蟮恼Z言,它導致了面向?qū)ο蟮恼Z言與過程語言在 C++和更近期的 JAVA 語言中的結(jié)合。 程序 計算機程序是指導計算機執(zhí)行某個功能或功能組合的一套指令。一個程序可多次執(zhí)行,而且每次用戶輸給計算機的選項和數(shù)據(jù)不同,就有可能得到不同的結(jié)果。應用程序直接為用戶執(zhí)行某項功能,如字處理或玩游戲。操作系統(tǒng)的例子包括: DOS、 Windows 9 OS/2 和 UNIX。 例如,你最喜歡的電腦游戲就是一個程序。安裝程序意味著要復制該程序或是 CD 上的指令存儲到你的計算機硬盤驅(qū)動器上。 許多程序(尤其是游戲)都非常大,會在你的硬盤驅(qū)動器里占用大量的存儲空間。其余部分則保留在軟件里。 其他程序完全安裝在您的硬盤驅(qū)動器上,使他們可以在不運行光盤行也可以使用。 每當我們在計算機上工作時,程序為我們做了大量的工作。 試想一下一個不懂外語的人,卻要寫外國人的故事是多么困難!你可能會知道學習一門外語,可要花很多年的時間。程序就像是這樣的翻譯,讓人們在不用學習計算機語言的情況下使用計算機工作。s weather report, puterfree is not the necessary tools and their application in itself has opened up new areas of people39。save39。see39。t see them. Others can be seen partly from the outside. Power It Up! Every puter needs a power supply, to take electricity from your house and convert it into a current that works for your puter. When it is plugged into the wall, electricity travels from the electrical wires in your house into the puter39。s sound. The video card handles graphics that are displayed on the monitor. There are also expansion cards for other puter ponents including the drives and ports. The modem is an expansion card that allows puters to talk to each modems can run up to 56,000 bits per second. The brain of a puter is the CPU or Central Processing Unit. Like a brain, it controls information and tells other parts what to do. The type of CPU in a puter also determines how fast that puter can operate. A CPU generates lots of heat, so there is usually a small fan nearby to cool it down. A very important puter ponent is the BIOS chip. BIOS stands for Basic Input Output System. In very simple terms, the BIOS chip wakes up the puter when you turn it on and reminds it what parts it has and what they do. RAM amp。s mind. It holds information that is built into it. ROM is like reading a library book lots of information is there, but you can39。s basic has three main functions: coordination and operation of puter hardware, such as puter memory, printer, disk, keyboard, mouse and monitor。 and processing hardware errorand data loss. What is an Operating System? The most important program on any puter is the Operating System or OS. The OS is a large program made up of many smaller programs that control how the CPU municates with other hardware ponents. It also makes puters easier to operate by people who don39。s, they did not get a copyright on it, which allowed many other panies to build similar puters that were IBMpatible。 (2) to perform a simple operation, for example, two figures are added together。 and (4) to where to find the next instruction to all of the executable programs are based on the final form of the machine language of the puter to read, but they are not all written in machine language to direct use of machine language programming extremely difficult because the instruction is 1 and 0 a typical machine language instruction may be 1001011001011, meaning that will store the contents of register A, register B added to the contents of storage. 2. Highlevel Language Highlevel language is to use human language in the words and syntax of a relatively plex are more than assembly language and machine language is more similar to normal human language, so used to write plex programs programming languages allow faster development of more large and more plex , the puter can understand before the highlevel language piler must be referred to another program translated into machine this reason, and using a program written in assembly language pared with the highlevel language programs written in running time may be longer, take up more memory. 3. Assembly Language Computer programmers use assembly language to machine language program to write the assembly language, and each statement corresponds roughly to a machinelanguage language statement is with easytoremember mands a typical assembly lang