《双语版C程序设计(英汉对照)》

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(开发C程序)3

1.4 Suggestions for learning C Programming(学习C语言程序设计的建议)5

Chapter Two C Data Types(C数据类型)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(数据类型)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(数据类型的大小)12

Programming pitfalls 14

Quick syntax reference15

Exercises15

Chapter Three Simple Arithmetic Operations and Expressions(简单的算术运算和表达式)17

3.1 C operators(C运算符)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(运算符优先级)24

3.3 Type conversions and casts(类型转换与强制类型转换)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( )[在函数printf( )中使用域宽和精度说明]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(逻辑运算符)43

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

5.5 The switch statement(switch语句)46

5.6 The conditional operator ?:(条件运算符)48

Programming pitfalls50

Quick syntax reference51

Exercises52

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

(循环控制语句:while、do-while和for)54

6.1 The while statement(while语句)54

6.2 The do-while loop(do-while循环)56

6.3 The for statement(for语句)57

6.4 Nested loops(嵌套的循环)59

Programming pitfalls62

Quick syntax reference63

Exercises63

Chapter Seven Arrays(数组)65

7.1 Introduction to arrays(引言)65

7.2 Initialising arrays(数组初始化)71

7.3 Two-dimensional arrays(二维数组)72

7.4 Initialising two-dimensional arrays(二维数组的初始化)74

7.5 Multi-dimensional arrays(多维数组)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 *(解引用运算符*)81

8.4 Why use pointers? (为什么使用指针)82

Programming pitfalls83

Quick syntax reference83

Exercises83

Chapter Nine Pointers and Arrays(指针和数组)85

9.1 Pointers and one-dimensional arrays(指针和一维数组)85

9.2 Pointers and multi-dimensional arrays(指针和多维数组)87

9.3 Dynamic memory allocation(动态内存分配)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(字符串和数组)103

10.4 Displaying a string(显示一个字符串)104

10.5 The puts() function[puts( )函数]105

10.6 The gets() function[gets( )函数]106

10.7 Accessing individual characters of a string(访问字符串中的单个字符)107

10.8 Assigning a string to a pointer(用字符串为字符指针赋值)108

10.9 String functions(字符串处理函数)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(数值字符串向数值的转换)113

10.11 Arrays of strings(字符串数组)114

Programming pitfalls117

Quick syntax reference118

Exercises119

Chapter Eleven Functions(函数)121

11.1 Introduction(引言)121

11.2 Function arguments(函数参数)123

11.3 Returning a value from a function(从函数返回一个值)126

11.4 Passing arguments by value(按值传参)128

11.5 Passing arguments by reference(按引用传参)129

11.6 Changing arguments in a function(在函数中改变实参的值)130

11.7 Passing a one-dimensional array to a function(向函数传递一维数组)132

11.8 Passing a multi-dimensional array to a function(向函数传递多维数组)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(命令行参数)140

11.11 Mathematical functions(数学函数)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(结构体)155

12.1 Defining a structure(定义结构体)155

12.2 Pointers to structures(结构体指针)159

12.3 Initialising a structure variable(结构体变量的初始化)160

12.4 Passing a structure to a function(向函数传递结构体变量)162

12.5 Nested structures(嵌套的结构体)164

12.6 Including a structure template from a file(从文件中引用结构体模板)166

12.7 The typedef statement(typedef语句)166

12.8 Arrays of structures(结构体数组)168

12.9 Enumerated data types(枚举数据类型)174

Programming pitfalls176

Exercises178

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

13.1 Binary and ASCII (text) files[二进制文件和ASCII(文本)文件]181

13.2 Opening and closing files(文件的打开和关闭)182

13.3 Reading a character from a file using fgetc()[使用函数fgetc( )从文件中读字符]185

13.4 Writing a character to a file using fputc()[使用函数fputc( )向文件中写字符]186

13.5 Reading a string of characters from a file using fgets()[使用函数fgets( )从文件中读字符串]187

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

13.7 Formatted input-output to a file using fscanf() and fprintf()[使用函数fscanf( )和fprintf( )进行文件的格式化读写]190

13.8 The standard files(标准文件)192

13.9 Block input-output using fread() and fwrite()[使用函数fread()和fwrite( )进行块读写]193

13.10 Rewinding a file using rewind()[使用函数rewind( )对文件重定位]195

13.11 Random access of files using fseek()[使用函数fseek( )随机访问文件]197

13.12 Finding the position in a file using ftell() [使用函数ftell( )查找文件的当前位置]203

13.13 Deleting a file using remove()[使用函数remove( )删除文件]203

Programming pitfalls204

Quick syntax reference205

Exercises206

Chapter Fourteen The C Preprocessor(C编译预处理)209

14.1 Including files(包含文件)209

14.2 Defining macros(定义宏)210

14.3 Macro parameters(带参数的宏)211

14.4 Macros and functions(宏和函数)213

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

14.6 Conditional directives(条件编译预处理指令)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

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

  1. 101条计算机经典名言(英汉对照版)

    "People always fear change. People feared electricity when it was invented, didn't they? People ...

  2. 001 计算思维-卡内基梅隆大学计算机系主任周以真(英汉对照版)

    英文版CACM Jeannette M. Wing (周以真) (翻译:徐韵文,王飞跃, 校对:王飞跃) Computational Thinking It represents a universa ...

  3. 英语书虫 英汉对照版, 全套五十本。牛津书虫系列

    http://item.taobao.com/auction/item_detail-0db2-5841890c860a10927260ad8314f41b35.jhtml?cm_cat=0 书虫系列 ...

  4. 计算机英语第四版英汉对照,计算机英语常用词英汉对照

    Tab(Table,制表键) Shift(上档键,用于输入双字符键上面部分的字符和在大(小)写字符状态输入小(大)写字符) Ctrl(Control,控制键) Alt(Alter,转换键) Inser ...

  5. 电子英汉词典c语言程序设计报告,英汉电子词典设计报告_设计_C语言_C语言程序设计.doc...

    英汉电子词典设计报告_设计_C语言_C语言程序设计 课程设计 课程名称 :C语言程序课程设计 题目名称 :电子英汉词典 学生学院 :电气信息学院 专业班级 :自动化1101 学 号 :20110102 ...

  6. 英汉词典c语言实验报告,大学课程英汉电子词典设计报告设计C语言C语言程序设计.doc...

    课程设计 课程名称 :C语言程序课程设计 题目名称 :电子英汉词典 学生学院 :电气信息学院 专业班级 :自动化1101 学 号 :201101020104 学生姓名 :胡拚 联系方式 指导教师 :陈 ...

  7. python语言程序设计嵩天-Python语言程序设计基础(第2版)嵩天课后答案

    嵩天.礼欣.黄天羽Python语言程序设计基础(第2版)习题答案本书提出了以理解和运用计算生态为目标的Python语言教学思想,在系统讲解Python语言语法的同时介绍了从数据理解到图像处理的14个P ...

  8. VB版双语对照制作助手的设计与实现

    VB版双语对照制作助手的设计与实现 摘要: 双语对照文本对于外语学习大有裨益:外语学习软件中词库与句库的导入文件需要规范的格式,即一行源语配一行目标语:影视中需要双语字幕:基于这些需求,本文采用VB开 ...

  9. VB版双语对照制作助手

    VB版双语对照制作助手 一.功能概述 该软件用于规范外语学习软件中词库与句库的导入文件.运行本软件,可利用[打开源语文件]和[打开目标语文件]按钮,也可直接利用复制粘贴操作来填充源语文本框和目标语文本 ...

最新文章

  1. MacBook的mission control的功能
  2. 机器学习:决策树过拟合与剪枝,决策树代码实现(三)
  3. R语言处理非线性回归模型C-D方程,使用R语言进行多项式回归、非线性回归模型曲线拟合...
  4. @codeforces - 553E@ Kyoya and Train
  5. 怎样通过vb设置透视表多项选择_四个操作带你玩转数据透视表,秒杀Excel函数,提升你的工作效率...
  6. PostgreSQL 12 正式发布
  7. python编程软件哪个好-来 看看谁最适合学Python编程
  8. 2个div并排自适应宽度
  9. AC日记——「SCOI2015」情报传递 LiBreOJ 2011
  10. vm14远程连接服务器,VisualVM 远程连接服务器
  11. oracle 启动报错03113,oracle数据库无法启动,总报ora-03113错误
  12. [转]电子书收集工具
  13. Android默哀日代码实现,简单直接
  14. mysql 按时间累计计算_mysql查询——计算占比与累计占比
  15. 软件项目管理经验总结
  16. 常见手机的useragent
  17. ps绘制android手机界面界面,教程·Photoshop | 手机界面效果图展示设计
  18. 简单解析android Hander处理机制
  19. Prism : Communicating Between Loosely Coupled Components
  20. 关于“sin(10°)是无理数”的一个证明

热门文章

  1. 【JUC并发编程07】Callable接口
  2. dubbo+zookeeper与提供者、消费者之间端口通信问题(No provider available for the service)
  3. JSP的7个动作include,forward,useBean。。。
  4. javascript的window.open()详解
  5. 【freemaker】ftl freemaker String常见操作语法
  6. LinkedList集合
  7. (Mybatis)动态SQL
  8. Scapy 伪造网络数据包
  9. 开源项目托管GitHub的使用详述
  10. Apollo之灰度发布