标准C语言基础教程(第四版)(英文版)

作者
Gary J. Bronson(盖瑞 ? J. 布朗森)
丛书名
国外计算机科学教材系列
出版社
电子工业出版社
ISBN
9787121343261
简要
简介
内容简介书籍计算机书籍 这是一本介绍用C语言进行计算机编程的经典教材。通过大量的实例和练习,全书系统介绍了数据类型、算术运算、逻辑运算、变量、条件语句、函数、数组、指针、字符串、结构、文件操作、位操作、宏、库函数等基本内容,使读者在阅读之后就能很快掌握C语言编程的精髓。讲解C 编程的一章也是本书的特色之一。书中每章都有大量的简答题和编程练习题,附录还列出了它们的答案。
目录
Contents
Part 1 Fundamentals\t1
Chapter 1 Introduction to Computer Programming\t1
1.1 History and Hardware\t1
1.2 Programming Languages\t7
1.3 Algorithms\t12
1.4 The Software Development Process\t15
1.5 Case Study: Design and Development\t22
1.6 Common Programming Errors\t25
1.7 Chapter Summary\t25
1.8 Chapter Appendix: Numerical Storage Codes\t26
Chapter 2 Getting Started in C Programming\t28
2.1 Introduction to C Programming\t28
2.2 Programming Style\t36
2.3 Data Types\t40
2.4 Arithmetic Operations\t45
2.5 Variables and Declarations\t53
2.6 Case Study: Temperature Conversion\t61
2.7 Common Programming and Compiler Errors\t64
2.8 Chapter Summary\t66
2.9 Chapter Supplement: Memory Allocation\t67
Chapter 3 Processing and Interactive Input\t73
3.1 Assignment\t73
3.2 Mathematical Library Functions\t81
3.3 Interactive Input\t85
3.4 Formatted Output\t94
3.5 Symbolic Constants\t101
3.6 Case Study: Interactive Input\t103
3.7 Common Programming and Compiler Errors\t108
3.8 Chapter Summary\t109
3.9 Chapter Supplement: Introduction to Abstraction\t110
Part 2 Flow of Control\t112
Chapter 4 Selection\t112
4.1 Relational Expressions\t112
4.2 The if and if-else Statements\t117
4.3 The if-else Chain\t126
4.4 The switch Statement\t132
4.5 Case Study: Data Validation\t138
4.6 Common Programming and Compiler Errors\t141
4.7 Chapter Summary\t143
4.8 Chapter Supplement: Errors, Testing, and Debugging\t144
Chapter 5 Repetition\t149
5.1 Basic Loop Structures\t149
5.2 The while Statement\t152
5.3 Computing Sums and Averages Using a while Loop\t158
5.4 The for Statement\t167
5.5 Case Studies: Loop Programming Techniques\t174
5.6 Nested Loops\t180
5.7 The do-while Statement\t183
5.8 Common Programming and Compiler Errors\t187
5.9 Chapter Summary\t188
Chapter 6 Modularity Using Functions: Part I\t190
6.1 Function and Parameter Declarations\t190
6.2 Returning a Value\t201
6.3 Case Study: Calculating Age Norms\t209
6.4 Standard Library Functions\t217
6.5 Common Programming and Compiler Errors\t228
6.6 Chapter Summary\t229
Chapter 7 Modularity Using Functions: Part II\t230
7.1 Variable Scope\t231
7.2 Variable Storage Class\t236
7.3 Pass by Reference\t242
7.4 Case Study: Swapping Values\t251
7.5 Recursion\t257
7.6 Common Programming and Compiler Errors\t261
7.7 Chapter Summary\t262
Part 3 Completing the Basics\t264
Chapter 8 Arrays\t264
8.1 One-Dimensional Arrays\t265
8.2Array Initialization\t272
8.3 Arrays as Function Arguments\t276
8.4 Case Study: Computing Averages and Standard Deviations\t279
8.5 Two-Dimensional Arrays\t284
8.6 Common Programming and Compiler Errors\t292
8.7 Chapter Summary\t293
8.8 Chapter Supplement: Searching and Sorting Methods\t293
Chapter 9 Character Strings\t312
9.1 String Fundamentals\t312
9.2 Library Functions\t321
9.3 Input Data Validation\t327
9.4 Formatting Strings (Optional)\t333
9.5 Case Study: Character and Word Counting\t335
9.6 Common Programming and Compiler Errors\t340
9.7 Chapter Summary\t341
Chapter 10 Data Files\t342
10.1Declaring, Opening, and Closing File Streams\t342
10.2Reading from and Writing to Text Files\t352
10.3Random File Access\t359
10.4Passing and Returning Filenames\t361
10.5Case Study: Creating and Using a Table of Constants\t363
10.6Writing and Reading Binary Files (Optional)\t371
10.7Common Programming and Compiler Errors\t375
10.8Chapter Summary\t376
10.9Chapter Supplement: Control Codes\t377
Part 4 Additional Topics\t380
Chapter 11 Arrays, Addresses, and Pointers\t380
11.1Array Names as Pointers\t380
11.2Manipulating Pointers\t385
11.3Passing and Using Array Addresses\t390
11.4Processing Strings Using Pointers\t395
11.5Creating Strings Using Pointers\t399
11.6Common Programming and Compiler Errors\t404
11.7Chapter Summary\t405
Chapter 12 Structures\t406
12.1Single Structures\t406
12.2Arrays of Structures\t411
12.3Passing and Returning Structures\t415
12.4Unions\t420
12.5Common Programming and Compiler Errors\t422
12.6Chapter Summary\t423
Chapter 13 Dynamic Data Structures\t425
13.1Introduction to Linked Lists\t425
13.2Dynamic Memory Allocation\t432
13.3Stacks\t436
13.4Queues\t442
13.5Dynamically Linked Lists\t447
13.6Common Programming and Compiler Errors\t453
13.7Chapter Summary\t454
Chapter 14 Additional Capabilities\t456
14.1Additional Features\t456
14.2Bit Operations\t461
14.3Macros\t467
14.4Command-Line Arguments\t469
14.5Common Programming and Compiler Errors\t473
14.6Chapter Summary\t473
Chapter 15 A Brief Introduction to C \t475
15.1Procedural Programming in C \t475
15.2Object-Oriented C \t479
15.3Common Programming and Compiler Errors\t481
15.4Chapter Summary\t482
Appendix A Operator Precedence Table\t484
Appendix B ASCII Character Codes\t485
Appendix C The Standard C Library\t488
Appendix D Input, Output, and Standard Error Redirection\t493
Appendix E Floating-Point Number Storage\t495
Appendix F Creating a Personal Library\t497
Appendix G Solutions to Short Answer Questions\t499

推荐

车牌查询
桂ICP备20004708号-3