双语版C程序设计(第3版) / 国外计算机科学教材系列
定价:¥49.00
作者: 保罗·凯利
出版时间:2025-06
出版社:电子工业出版社
- 电子工业出版社
- 9787121503085
- 1-1
- 560139
- 平塑
- 16开
- 2025-06
- 427
- 220
- 计算机科学与技术
- 本科 研究生及以上
内容简介
本书由在计算机程序设计方面有着丰富教学和实践经验的中外作者合作编写,并在其第2版的基础上进行了修订与更新。本书内容共14章,由浅入深、全面介绍了C程序设计方法,包括基本数据类型和基本输入/输出方式、各种控制结构和语句、数组和指针、字符串、函数、结构体、文件输入和输出等内容,最后讨论了C编译预处理。本书通俗易懂,所有实例经过精心挑选、贴近生活,尤其强调读者的亲自参与意识。大多数章都为初学者提供了常见错误分析,所选习题可提高读者上机编程的兴趣。本书采用中英文对照混排,既方便初学者熟悉相关概念和内容,也便于英语非母语的读者熟悉英文专业词汇。
目录
目 录__eol____eol____eol____eol__Chapter One Introduction to C(引言) 1__eol__1.1 Brief history of C(C 语言简史) 1__eol__1.2 Why programmers use C(为什么程序员爱用C语言) 1__eol__1.2.1 C is portable 1__eol__1.2.2 C is a structured programming language 2__eol__1.2.3 C is efficient 2__eol__1.2.4 C is flexible 2__eol__1.2.5 C is powerful 2__eol__1.2.6 C is concise 3__eol__1.3 Developing a C program(开发C 程序) 3__eol__1.4 Suggestions for learning C programming(学习C 程序设计的建议) 4__eol__Chapter Two C Data Types(C 数据类型) 6__eol__2.1 Constants(常量) 6__eol__2.2 Variables(变量) 6__eol__2.3 Simple output to the screen(简单的屏幕输出) 8__eol__2.4 Comments(注释) 9__eol__2.5 Data types(数据类型) 10__eol__2.5.1 Short integer data types 10__eol__2.5.2 Long integer data types 11__eol__2.5.3 Unsigned integer data types 11__eol__2.5.4 Double floating-point data type 11__eol__2.6 Data type sizes(数据类型的大小) 11__eol__Programming pitfalls 13__eol__Quick syntax reference 13__eol__Exercises 14__eol__Chapter Three Simple Arithmetic Operations and Expressions(简单的算术运算和表达式) 16__eol__3.1 C operators(C 运算符) 16__eol__3.1.1 The assignment operator 16__eol__3.1.2 Arithmetic operators 17__eol__3.1.3 Increment and decrement operators 19__eol__3.1.4 Combined operators 21__eol__3.2 Operator precedence(运算符优先级) 22__eol__3.3 Type conversions and casts(类型转换与强制类型转换) 24__eol__Programming pitfalls 26__eol__Quick syntax reference 27__eol__Exercises 27__eol__Chapter Four Keyboard Input and Screen Output(键盘输入和屏幕输出) 30__eol__4.1 Simple keyboard input(简单的键盘输入) 30__eol__4.2 Using a width and precision specification in printf()__eol__ [在函数printf( )中使用域宽和精度说明] 31__eol__4.3 Single-character input and output(单个字符的输入和输出) 33__eol__Programming pitfalls 35__eol__Quick syntax reference 35__eol__Exercises 36__eol__Chapter Five Control Statements: if and switch(控制语句:if 和switch) 38__eol__5.1 The if statement(if 语句) 38__eol__5.2 The if-else statement(if-else 语句) 39__eol__5.3 Logical operators(逻辑运算符) 41__eol__5.4 Nested if statements(嵌套的if 语句) 42__eol__5.5 The switch statement(switch 语句) 44__eol__5.6 The conditional operator ?:(条件运算符?:) 46__eol__Programming pitfalls 47__eol__Quick syntax reference 48__eol__Exercises 48__eol__Chapter Six Iterative Control Statements: while, do-while, and for__eol__ (循环控制语句:while、do-while和for) 51__eol__6.1 The while statement(while 语句) 51__eol__6.2 The do-while loop(do-while 循环) 52__eol__6.3 The for statement(for 语句) 54__eol__6.4 Nested loops(嵌套循环) 56__eol__Programming pitfalls 58__eol__Quick syntax reference 59__eol__Exercises 59__eol__Chapter Seven Arrays(数组) 61__eol__7.1 Introduction to arrays(引言) 61__eol__7.2 Initialising arrays(数组初始化) 66__eol__7.3 Two-dimensional arrays(二维数组) 67__eol__7.4 Initialising two-dimensional arrays(二维数组的初始化) 68__eol__7.5 Multi-dimensional arrays(多维数组) 69__eol__Programming pitfalls 70__eol__Quick syntax reference 70__eol__Exercises 70__eol__Chapter Eight Pointers(指针) 73__eol__8.1 Variable addresses(变量的地址) 73__eol__8.2 Pointer variables(指针变量) 74__eol__8.3 The dereference operator *(解引用运算符*) 75__eol__8.4 Why use pointers? (为什么使用指针?) 76__eol__Programming pitfalls 77__eol__Quick syntax reference 77__eol__Exercises 77__eol__Chapter Nine Pointers and Arrays(指针和数组) 79__eol__9.1 Pointers and one-dimensional arrays(指针和一维数组) 79__eol__9.2 Pointers and multi-dimensional arrays(指针和多维数组) 81__eol__9.3 Dynamic memory allocation(动态内存分配) 82__eol__9.3.1 The malloc() function 82__eol__9.3.2 The calloc() function 85__eol__9.3.3 The realloc() function 86__eol__9.3.4 Allocating memory for multi-dimensional arrays 87__eol__Programming pitfalls 90__eol__Quick syntax reference 90__eol__Exercises 90__eol__Chapter Ten Strings(字符串) 93__eol__10.1 String literals(字符串) 93__eol__10.2 Long character strings(长字符串) 94__eol__10.3 Strings and arrays(字符串和数组) 94__eol__10.4 Displaying a string(显示一个字符串) 95__eol__10.5 The puts() function[puts( )函数] 97__eol__10.6 The gets() function[gets( )函