Chapter One Typographic Conventions(绪论)?1 1.1 What is a computer program? (什么是计算机程序 )?1 1.2 Developing a computer program(开发计算机程序) ?2 1.2.1 Program development cycle ?2 1.3 Learning C (学习 C )?4 1.4 Web site for this book(本书的)?4 1.5 Brief history of C (C 简史) ?4 1.6 ANSI/ISO C standard(ANSI/ISO C 标准) ?5 Chapter Two Beginning to Program in C (C 编程入门)?6 2.1 Constants(常量)?6 2.2 Variables(变量)?6 2.3 Simple output to the screen(简单的屏幕输出)?7 2.4 Comments(注释)?9 2.5 Data types(数据类型)?10 2.5.1 Short integer data types?10 2.5.2 Long integer data types?10 2.5.3 Boolean data types?11 2.5.4 Double floating-point data types?11 2.5.5 Unsigned integer data types?11 2.6 Data type sizes(数据类型的大小)?11 2.7 Operators (运算符)?12 2.7.1 The assignment operator?12 2.7.2 Arithmetic operators?12 2.7.3 Increment and decrement operators?13 2.7.4 Combined assignment operators?15 2.8 Operator precedence(运算符的优先级)?16 2.9 Data type conversions and casts(类型转换和强转)?18 Programming pitfalls?20 Quick syntax reference?21 Exercises?22 Chapter Three Keyboard Input and Screen Output(键盘输入和屏幕输出)?26 3.1 Simple keyboard input(简单的键盘输入)?26 3.2 Manipulators(流操纵符)?28 3.3 Single-character input and output(单个字符的输入和输出)?30 Programming pitfalls?32 Quick syntax reference?32 Exercises?32 Chapter Four Selection and Iteration(选择与循环)?34 4.1 Selection(选择)?34 4.1.1 The if statement?34 4.1.2 The if-else statement?35 4.1.3 Compound statements?35 4.1.4 Logical operators?37 4.1.5 Nested if statements?37 4.1.6 The switch statement?37 4.1.7 The conditional operator? :?39 4.2 Iteration(循环)?40 4.2.1 The while statement?40 4.2.2 The do-while loop?42 4.2.3 The for statement?43 4.2.4 Nested loops?45 Programming pitfalls?47 Quick syntax reference?49 Exercises?50 Chapter Five Arrays and Structures(数组和结构体)?53 5.1 Arrays(数组)?53 5.1.1 Introduction?53 5.1.2 Initialising an array?56 5.1.3 Two-dimensional arrays?57 5.1.4 Initialising a two-dimensional array?59 5.1.5 Multi-dimensional arrays?60 5.2 Structures(结构体)?60 5.2.1 Introduction?60 5.2.2 Declaring a structure?61 5.2.3 Initialising a structure variable?63 5.2.4 Nested structures?64 5.3 The typedef statement(typedef 语句)?65 5.4 Arrays of structures(结构体数组)?66 5.5 Enumerated data types(枚举数据类型)?66 Programming pitfalls?68 Quick syntax reference?68 Exercises?69 Chapter Six Strings(字符串)?72 6.1 C-strings(C 风格字符串)?72 6.2 C-string input and output(C 风格字符串的输入和输出)?73 6.3 Accessing individual characters of a C-string(访问C 风格字符串中的单个字符)?77 6.4 C-string functions(C 风格字符串函数)?77 6.4.1 Finding the length of a C-string?78 6.4.2 Copying a C-string?78 6.4.3 C-string concatenation?79 6.4.4 Comparing C-strings?79 6.4.5 Other C-string functions?79 6.4.6 Converting numeric C-strings to numbers?80 6.5 C strings(C 字符串)?80 6.5.1 string initialisation and assignment?82 6.5.2 string concatenation?84 6.5.3 string length, string indexing and sub-strings?85 6.5.4 string replace, erase, insert and empty strings?86 6.5.5 string searching?88 6.5.6 string comparisons?89 6.5.7 string input?91 6.5.8 string conversions?92 6.6 Arrays of strings(string 类型的数组)?93 6.7 Character classification(字符分类)?94 Programming pitfalls?96 Quick syntax reference?96 Exercises?97 Chapter Seven Functions(函数)?100 7.1 Introduction(引言)?100 7.2 Function arguments(函数实参)?102 7.3 Default parameter values(默认的形参值)?105 7.4 Returning a value from a function(从函数返回一个值)?106 7.5 Inline functions(内联函数)?107 7.6 Passing arguments by value(按值传递实参)?108 7.7 Passing arguments by reference(按引用传递实参)?109 7.8 Passing a one-dimensional array to a function(向函数传递一维数组)?112 7.9 Passing a multi-dimensional array to a function(向函数传递多维数组)?115 7.10 Passing a structure variable to a function(向函数传递结构体变量)?116 7.11 Passing a string to function(向函数传递字符串)?118 7.11.1 Passing a C string to a function?118 7.11.2 Passing a C-string to a function?119 7.12 Recursion(递归)?120 7.13 Function overloading(函数重载)?122 7.14 Storage classes auto and static? (auto 和static 存储类型)?123 7.14.1 auto?123 7.14.2 static?124 7.15 The scope of a variable(变量的作用域)?125 7.15.1 Block scope?125 7.15.2 Global scope?126 7.15.3 Reusing a variable name?127 7.16 Mathemat
以下为对购买帮助不大的评价