freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

c語言中英文翻譯資料(已改無錯字)

2022-09-21 11:28:25 本頁面
  

【正文】 quotes is called the format string and describes how the data is to be formatted when printed. The format string contains string literals (or string constant) such as The factorial of, \n (also called escape sequence. /n stands for carriage returns), and operators in the form of %d, which are used as placeholders for variables. The two operators(also called conversion specifications) in the format string indicate that integer values found later in the parameter list are to be placed into the string at these points. Other operators include %f for floating point values, %c for characters, and %s for strings.In the printf statement, it is extremely important that the number of operators in the format string corresponds exactly with the number and type of the variables following it. For example, if the format string contains three operators and it must be followed by exactly three parameters, and they must have the same types in the same order as those specified by the operators.This program is good, but it would be better if it reads in the value instead of using a constant. Edit the file, remove the VALUE constant, and declare a variable value instead as a global integer(changing all references to lowercase because value is now a variable). Then place the following two lines at the beginning of the program:Printf (“Enter the value: ”)。Scanf(“%d”, amp。value)。Make the changes, then pile and run the program to make sure it works. Note that scanf uses the same sort of format string as printf. The amp。 sign in front of value is the address operator in C, which returns the address of the variable. You must use the amp。operator in scanf on any variable of type char, int, or float, as well as record types. If you leave out the amp。 operator, you will encounter an error when you run the program. 譯文C語言C語言是一種高級程序設(shè)計語言,是20世紀(jì)70年代由Dennis Ritchie和Brian Kernighan在貝爾實(shí)驗室開發(fā)的。雖然C語言最初是作為一種系統(tǒng)語言設(shè)計的,但后來的實(shí)踐證明C語言功能強(qiáng)大,也十分靈活,可以用于各種應(yīng)用程序,如商業(yè)軟件、工程項目等,C語言在個人計算機(jī)編程領(lǐng)域非常流行,因為C語言規(guī)模較小—比其他語言需求的內(nèi)存少。用C語言編寫的第一個重要程序是UNIX操作系統(tǒng);以后多年之中,大家普遍認(rèn)為C語言是與UNIX操作系統(tǒng)密不可分的。不過,現(xiàn)在C語言已經(jīng)是一種與UNIX無關(guān)的重要語言,雖然C語言是一種高級語言,但是它比其他高級語言更接近于匯編語言。正是因為與低層的機(jī)器語言十分接近,C程序員才可以編寫高效率的代碼。不過,C語言的這種低級性在某些應(yīng)用場合也顯得難以駕馭。以下我們將從歷史和技術(shù)的角度對C語言作一概括。作為一種通用的程序設(shè)計語言,C語言是在UNIX環(huán)境下開發(fā)出來的。UNIX系統(tǒng)本身及其應(yīng)用程序也都是用C語言編寫的,所以C語言一直與UNIX有著密切的關(guān)系。不過,C語言并不局限于某種操作系統(tǒng)或機(jī)型;C語言一直被稱作一種“系統(tǒng)開發(fā)語言”,因為它在編寫編譯程序和操作系統(tǒng)方面特別有用,但是,在其他領(lǐng)域的大型程序開發(fā)方面也表現(xiàn)得同樣出色。C語言的許多重要思想來自于Martin Richards研制的BCPL語言。BCPL語言對于C語言的影響是通過B語言間接地進(jìn)行的。B語言是Ken Tompson于1970年為DEC-PDP-7計算機(jī)上的UNIX系統(tǒng)而開發(fā)的。BCPL語言和B語言都是“無類型的”語言。相比之下,C語言提供了各種數(shù)據(jù)類型。其中基本的數(shù)據(jù)類型包括:字符型、整數(shù)型、各種精度的浮點(diǎn)型、數(shù)組型、結(jié)構(gòu)型,及其聯(lián)合體。表達(dá)式是由操作數(shù)組成的;任何的表達(dá)式,包括賦值及函數(shù)調(diào)用都可以作為一條語句。指針則可以提供與機(jī)器無關(guān)的地址運(yùn)算。C語言提供了各種基本的流程控制結(jié)構(gòu),用于結(jié)構(gòu)化程序設(shè)計。如:語句分組、判定結(jié)構(gòu)(ifelse)、情況結(jié)構(gòu)(switch
點(diǎn)擊復(fù)制文檔內(nèi)容
物理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1