日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

C语言程序设计双语版,双语版C程序设计(英汉对照)

發(fā)布時間:2025/3/20 编程问答 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 C语言程序设计双语版,双语版C程序设计(英汉对照) 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

《雙語版C程序設(shè)計(英漢對照)》

Chapter One Introduction to C(引言)1

1.1 Brief history of C(C語言簡史)1

1.2 Why programmers use C(為什么程序員愛用C語言)1

1.2.1 C is portable1

1.2.2 C is a structured programming language2

1.2.3 C is efficient2

1.2.4 C is flexible2

1.2.5 C is powerful3

1.2.6 C is concise3

1.3 Developing a C program(開發(fā)C程序)3

1.4 Suggestions for learning C Programming(學(xué)習(xí)C語言程序設(shè)計的建議)5

Chapter Two C Data Types(C數(shù)據(jù)類型)6

2.1 Constants(常量)6

2.2 Variables(變量)6

2.3 Simple output to the screen(簡單的屏幕輸出)8

2.4 Comments(注釋)9

2.5 Data types(數(shù)據(jù)類型)10

2.5.1 Short integer data types11

2.5.2 Long integer data types11

2.5.3 Unsigned integer data types11

2.5.4 Double floating-point data type12

2.6 Data type sizes(數(shù)據(jù)類型的大小)12

Programming pitfalls 14

Quick syntax reference15

Exercises15

Chapter Three Simple Arithmetic Operations and Expressions(簡單的算術(shù)運(yùn)算和表達(dá)式)17

3.1 C operators(C運(yùn)算符)17

3.1.1 The assignment operator17

3.1.2 Arithmetic operators18

3.1.3 Increment and decrement operators20

3.1.4 Combined operators23

3.2 Operator precedence(運(yùn)算符優(yōu)先級)24

3.3 Type conversions and casts(類型轉(zhuǎn)換與強(qiáng)制類型轉(zhuǎn)換)26

Programming pitfalls28

Quick syntax reference29

Exercises29

Chapter Four Keyboard Input and Screen Output(鍵盤輸入和屏幕輸出)32

4.1 Simple keyboard input(簡單的鍵盤輸入)32

4.2 Using a width and precision specification in printf( )[在函數(shù)printf( )中使用域?qū)捄途日f明]34

4.3 Single-character input and output(單個字符的輸入和輸出)35

Programming pitfalls37

Quick syntax reference38

Exercises38

Chapter Five Control Statements: If and Switch(控制語句:if和switch)40

5.1 The if statement(if語句)40

5.2 The if-else statement(if-else語句)41

5.3 Logical operators(邏輯運(yùn)算符)43

5.4 Nested if statements(嵌套的if語句)44

5.5 The switch statement(switch語句)46

5.6 The conditional operator ?:(條件運(yùn)算符)48

Programming pitfalls50

Quick syntax reference51

Exercises52

Chapter Six Iterative Control Statements: while, do-while, and for

(循環(huán)控制語句:while、do-while和for)54

6.1 The while statement(while語句)54

6.2 The do-while loop(do-while循環(huán))56

6.3 The for statement(for語句)57

6.4 Nested loops(嵌套的循環(huán))59

Programming pitfalls62

Quick syntax reference63

Exercises63

Chapter Seven Arrays(數(shù)組)65

7.1 Introduction to arrays(引言)65

7.2 Initialising arrays(數(shù)組初始化)71

7.3 Two-dimensional arrays(二維數(shù)組)72

7.4 Initialising two-dimensional arrays(二維數(shù)組的初始化)74

7.5 Multi-dimensional arrays(多維數(shù)組)75

Programming pitfalls76

Quick syntax reference76

Exercises77

Chapter Eight Pointers(指針)79

8.1 Variable addresses(變量的地址)79

8.2 Pointer variables(指針變量)80

8.3 The dereference operator *(解引用運(yùn)算符*)81

8.4 Why use pointers? (為什么使用指針)82

Programming pitfalls83

Quick syntax reference83

Exercises83

Chapter Nine Pointers and Arrays(指針和數(shù)組)85

9.1 Pointers and one-dimensional arrays(指針和一維數(shù)組)85

9.2 Pointers and multi-dimensional arrays(指針和多維數(shù)組)87

9.3 Dynamic memory allocation(動態(tài)內(nèi)存分配)89

9.3.1 The malloc() function89

9.3.2 The calloc() function92

9.3.3 The realloc() function93

9.3.4 Allocating memory for multi-dimensional arrays95

Programming pitfalls98

Exercises99

Chapter Ten Strings(字符串)101

10.1 String literals(字符串)101

10.2 Long character strings(長字符串)102

10.3 Strings and arrays(字符串和數(shù)組)103

10.4 Displaying a string(顯示一個字符串)104

10.5 The puts() function[puts( )函數(shù)]105

10.6 The gets() function[gets( )函數(shù)]106

10.7 Accessing individual characters of a string(訪問字符串中的單個字符)107

10.8 Assigning a string to a pointer(用字符串為字符指針賦值)108

10.9 String functions(字符串處理函數(shù))110

10.9.1 Finding the length of a string110

10.9.2 Copying a string110

10.9.3 String concatenation111

10.9.4 Comparing strings111

10.9.5 Other string functions112

10.10 Converting numeric strings to numbers(數(shù)值字符串向數(shù)值的轉(zhuǎn)換)113

10.11 Arrays of strings(字符串?dāng)?shù)組)114

Programming pitfalls117

Quick syntax reference118

Exercises119

Chapter Eleven Functions(函數(shù))121

11.1 Introduction(引言)121

11.2 Function arguments(函數(shù)參數(shù))123

11.3 Returning a value from a function(從函數(shù)返回一個值)126

11.4 Passing arguments by value(按值傳參)128

11.5 Passing arguments by reference(按引用傳參)129

11.6 Changing arguments in a function(在函數(shù)中改變實參的值)130

11.7 Passing a one-dimensional array to a function(向函數(shù)傳遞一維數(shù)組)132

11.8 Passing a multi-dimensional array to a function(向函數(shù)傳遞多維數(shù)組)134

11.9 Storage classes(變量的存儲類型)135

11.9.1 auto 135

11.9.2 static 136

11.9.3 extern 137

11.9.4 register 139

11.10 Command line arguments(命令行參數(shù))140

11.11 Mathematical functions(數(shù)學(xué)函數(shù))142

11.11.1 Some commonly used trigonometric functions142

11.11.2 Other common mathematical functions143

11.11.3 Pseudo-random number functions144

11.11.4 Some time-related functions144

11.12 Recursion146

Programming pitfalls149

Quick syntax reference150

Exercises151

Chapter Twelve Structures(結(jié)構(gòu)體)155

12.1 Defining a structure(定義結(jié)構(gòu)體)155

12.2 Pointers to structures(結(jié)構(gòu)體指針)159

12.3 Initialising a structure variable(結(jié)構(gòu)體變量的初始化)160

12.4 Passing a structure to a function(向函數(shù)傳遞結(jié)構(gòu)體變量)162

12.5 Nested structures(嵌套的結(jié)構(gòu)體)164

12.6 Including a structure template from a file(從文件中引用結(jié)構(gòu)體模板)166

12.7 The typedef statement(typedef語句)166

12.8 Arrays of structures(結(jié)構(gòu)體數(shù)組)168

12.9 Enumerated data types(枚舉數(shù)據(jù)類型)174

Programming pitfalls176

Exercises178

Chapter Thirteen File Input and Output(文件的輸入和輸出)181

13.1 Binary and ASCII (text) files[二進(jìn)制文件和ASCII(文本)文件]181

13.2 Opening and closing files(文件的打開和關(guān)閉)182

13.3 Reading a character from a file using fgetc()[使用函數(shù)fgetc( )從文件中讀字符]185

13.4 Writing a character to a file using fputc()[使用函數(shù)fputc( )向文件中寫字符]186

13.5 Reading a string of characters from a file using fgets()[使用函數(shù)fgets( )從文件中讀字符串]187

13.6 Writing a string of characters to a file using fputs()[使用函數(shù)fputs( )向文件中寫入字符串]189

13.7 Formatted input-output to a file using fscanf() and fprintf()[使用函數(shù)fscanf( )和fprintf( )進(jìn)行文件的格式化讀寫]190

13.8 The standard files(標(biāo)準(zhǔn)文件)192

13.9 Block input-output using fread() and fwrite()[使用函數(shù)fread()和fwrite( )進(jìn)行塊讀寫]193

13.10 Rewinding a file using rewind()[使用函數(shù)rewind( )對文件重定位]195

13.11 Random access of files using fseek()[使用函數(shù)fseek( )隨機(jī)訪問文件]197

13.12 Finding the position in a file using ftell() [使用函數(shù)ftell( )查找文件的當(dāng)前位置]203

13.13 Deleting a file using remove()[使用函數(shù)remove( )刪除文件]203

Programming pitfalls204

Quick syntax reference205

Exercises206

Chapter Fourteen The C Preprocessor(C編譯預(yù)處理)209

14.1 Including files(包含文件)209

14.2 Defining macros(定義宏)210

14.3 Macro parameters(帶參數(shù)的宏)211

14.4 Macros and functions(宏和函數(shù))213

14.5 Some useful macros(一些有用的宏)214

14.6 Conditional directives(條件編譯預(yù)處理指令)215

14.7 Character-testing macros(字符檢測宏)216

Programming pitfalls218

Quick syntax reference218

Exercises218

Appendix A List of C Keywords220

Appendix B Precedence and Associativity of C Operators221

Appendix C ASCII Character Codes223

Appendix D Fundamental C Built-in Data Types225

總結(jié)

以上是生活随笔為你收集整理的C语言程序设计双语版,双语版C程序设计(英汉对照)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 中文字幕第12页 | 亚洲欧美日本另类 | 女人性高潮视频 | 国产永久在线观看 | 97香蕉久久超级碰碰高清版 | 三上悠亚在线观看一区二区 | 日本网站在线播放 | 亚洲爽妇网 | 亚洲av日韩av在线观看 | 男女交性视频 | 一本久道综合色婷婷五月 | 丁香婷婷一区二区三区 | 日韩欧美资源 | 一级片a级片 | 成人午夜性视频 | 国产女大学生av | 亚洲gay视频 | 干美女少妇 | 97超碰免费 | 国产视频精品免费 | 竹菊影视一区二区三区 | 国产白丝袜美女久久久久 | 在线一区二区三区四区五区 | 小明成人免费视频 | 久久精品亚洲精品国产欧美 | 按摩害羞主妇中文字幕 | 中文字幕 人妻熟女 | 亚洲第99页| 欧美xxxx少妇| 蜜臀av性久久久久蜜臀aⅴ | 五十路在线视频 | 日韩女优在线视频 | 日本啪啪网站 | 国产日韩一区二区在线观看 | 国产人妻精品一区二区三区不卡 | 欧美精品一卡 | 国产二级一片内射视频播放 | 丰满人妻一区二区三区大胸 | 操综合网 | 欧美一级日韩 | 久久久久免费视频 | 91视频分类 | 久久美利坚 | 91精品国自产在线观看 | 特黄一区二区三区 | 深夜视频在线免费 | 美女扒开腿让男人捅 | 国产精品福利在线 | 亚洲人 女学生 打屁股 得到 | 殴美黄色大片 | 热久久久久久久 | 免费一级全黄少妇性色生活片 | 91性高潮久久久久久久 | 无码人妻精品一区二区三区99v | 日本在线视频免费 | 久久激情免费视频 | 自拍视频在线 | 三级三级久久三级久久18 | 奇米影视首页 | 国产免费黄 | 一级做a免费 | 成人拍拍拍 | 视频区图片区小说区 | 成人免费黄色网址 | 一区二区不卡在线观看 | 成人爽站w47pw | 国产一区二区在线观看免费 | 国产精品久久久久久久一区探花 | 让男按摩师摸好爽视频 | 美女视频黄色在线观看 | 狠狠撸视频| 精品一区二区久久久久蜜桃 | 久久精品9 | 日韩色在线 | 日本黄色大片在线观看 | 欧美一区二不卡视频 | 国产精品久久久网站 | 日韩在线看片 | 国产精品系列在线播放 | 欧美一级专区免费大片 | 中文字幕99| 91精品国产乱码在线观看 | 国产91精品高潮白浆喷水 | 娇妻av| 国产精品成人无码专区 | 老牛嫩草二区三区观影体验 | 国产强被迫伦姧在线观看无码 | av网站大全在线观看 | 免费观看91视频 | 一本一道久久综合狠狠老精东影业 | 欧美高清视频一区二区三区 | 国产精品传媒一区二区 | 超碰一区二区 | 久久久久99精品成人片三人毛片 | 69日影院 | 手机在线观看毛片 | 日本一区二区三区视频在线播放 | 午夜成人影片 | 伊人三区 |