目录 Chapter OneIntroduction to C(引言) 1.1Brief history of C(C 语言简史) 1.2Why programmers use C(为什么程序员爱用C语言) 1.2.1C is portable 1.2.2C is a structured programming language 1.2.3C is efficient 1.2.4C is flexible 1.2.5C is powerful 1.2.6C is concise 1.3Developing a C program(开发C程序) 1.4Suggestions for learning C programming(学习C 语言程序设计的建议) Chapter TwoC Data Types(C数据类型) 2.1Constants(常量) 2.2Variables(变量) 2.3Simple output to the screen(简单的屏幕输出) 2.4Comments(注释) 2.5Data types(数据类型) 2.5.1Short integer data types 2.5.2Long integer data types 2.5.3Unsigned integer data types 2.5.4Double floating-point data type 2.6Data type sizes(数据类型的大小) Programming pitfalls Quick syntax reference Exercises Chapter ThreeSimple Arithmetic Operations and Expressions(简单的算术运算和表达式) 3.1C operators(C 运算符) 3.1.1The assignment operator 3.1.2Arithmetic operators 3.1.3Increment and decrement operators 3.1.4Combined operators 3.2Operator precedence(运算符优先级) 3.3Type conversions and casts(类型转换与强制类型转换) Programming pitfalls Quick syntax reference Exercises Chapter FourKeyboard Input and Screen Output(键盘输入和屏幕输出) 4.1Simple keyboard input(简单的键盘输入) 4.2Using a width and precision specification in printf() [在函数printf()中使用域宽和精度说明] 4.3Single-character input and output(单个字符的输入和输出) Programming pitfalls Quick syntax reference Exercises Chapter FiveControl Statements: if and switch(控制语句:if 和switch) 5.1The if statement(if 语句) 5.2The if-else statement(if-else 语句) 5.3Logical operators(逻辑运算符) 5.4Nested if statements(嵌套的if 语句) 5.5The switch statement(switch 语句) 5.6The conditional operator ?:(条件运算符) Programming pitfalls Quick syntax reference Exercises Chapter SixIterative Control Statements: while, do-while, and for 循环控制语句:while、do-while和for) 6.1The while statement(while 语句) 6.2The do-while loop(do-while 循环) 6.3The for statement(for 语句) 6.4Nested loops(嵌套的循环) Programming pitfalls Quick syntax reference Exercises Chapter SevenArrays(数组) 7.1Introduction to arrays(引言) 7.2Initialising arrays(数组初始化) 7.3Two-dimensional arrays(二维数组) 7.4Initialising two-dimensional arrays(二维数组的初始化) 7.5Multi-dimensional arrays(多维数组) Programming pitfalls Quick syntax reference Exercises Chapter EightPointers(指针) 8.1Variable addresses(变量的地址) 8.2Pointer variables(指针变量) 8.3The dereference operator *(解引用运算符*) 8.4Why use pointers?为什么使用指针) Programming pitfalls Quick syntax reference Exercises Chapter NinePointers and Arrays(指针和数组) 9.1Pointers and one-dimensional arrays(指针和一维数组) 9.2Pointers and multi-dimensional arrays(指针和多维数组) 9.3Dynamic memory allocation(动态内存分配) 9.3.1The malloc() function 9.3.2The calloc() function 9.3.3The realloc() function 9.3.4Allocating memory for multi-dimensional arrays Programming pitfalls Quick syntax reference Exercises Chapter TenStrings(字符串) 10.1String literals(字符串) 10.2Long character strings(长字符串) 10.3Strings and arrays(字符串和数组) 10.4Displaying a string(显示一个字符串) 10.5The puts() function[puts()函数] 10.6The gets() function[gets()函数] 10.7Accessing individual characters of a string(访问字符串中的单个字符) 10.8Assigning a string to a pointer 用字符串为字符指针赋值) 10.9String functions(字符串处理函数) 10.9.1Finding the length of a string 10.9.2Copying a string 10.9.3String concatenation 10.9.4Comparing strings 10.9.5Other string functions 10.10 Converting numeric strings to numbers数值字符串向数值的转换) 10.11 Arrays of strings(字符串数组) Programming pitfalls Quick syntax reference Exercises Chapter ElevenFunctions(函数) 11.1Introduction(引言) 11.2Function arguments(函数参数) 11.3Returning a value from a function 从函数返回一个值) 11.4Passing arguments by value 按值传参) 11.5Passing arguments by reference(按引用传参) 11.6Changing arguments in a function 在函数中改变实参的值) 11.7Passing a one-dimensional array to a function 向函数传递一维数组) 11.8Passing a multi-dimensional array to a function 向函数传递多维数组) 11.9Storage classes(变量的存储类型) 11.9.1auto 11.9.2static 11.9.3extern 11.9.4register 11.10 Command line arguments 命令行参数) 11.11 Mathematical functions(数学函数) 11.11.1Some commonly used trigonometric functions 11.11.2Other common mathematical functions 11.11.3Pseudo-random number functions 11.11.4Some time-related functions 11.12 Recursion Programming pitfalls Quick syntax reference Exercises Chapter TwelveStructures(结构体) 12.1Defining a structure(定义结构体) 12.2Pointers to structures(结构体指针) 12.3Initialising a structure variable 结构体变量的初始化) 12.4Passing a structure to a function 向函数传递结构体变量) 12.5Nested structures(嵌套的结构体) 12.6Including a structure template from a file 从文件中引用结构体模板) 12.7The typedef statement typedef 语句) 12.8Arrays of structures(结构体数组) 12.9Enumerated data types(枚举数据类型) Programming pitfalls Quick syntax reference Exercises Chapter ThirteenFile Input and Output(文件的输入和输出) 13.1Binary and ASCII (text) files[二进制文件和ASCII(文本)文件] 13.2Opening and closing files 文件的打开和关闭) 13.3Reading a character from a file using fgetc() [使用函数fgetc()从文件中读字符] 13.4Writing a character to a file using fputc() [使用函数fputc()向文件中写字符] 13.5Reading a string of characters from a file using fgets() [使用函数fgets()从文件中读字符串] 13.6Writing a string of characters to a file using fputs() [使用函数fputs()向文件中写字符串] 13.7Formatted input-output to a file using fscanf() and fprintf() [使用函数fscanf()和fprintf()进行文件的格式化读写] 13.8The standard files(标准文件) 13.9Block input-output using fread() and fwrite() [使用函数fread()和fwrite()进行块读写] 13.10 Rewinding a file using rewind()[使用函数rewind()对文件重定位] 13.11 Random access of files using fseek() [使用函数fseek()随机访问文件] 13.12 Finding the position in a file using ftell() [使用函数ftell()查找文件的当前位置] 13.13 Deleting a file using remove()[使用函数remove()删除文件] Programming pitfalls Quick syntax reference Exercises Chapter FourteenThe C Preprocessor(C编译预处理) 14.1Including files(包含文件) 14.2Defining macros(定义宏) 14.3Macro parameters(带参数的宏) 14.4Macros and functions(宏和函数) 14.5Some useful macros(一些有用的宏) 14.6Conditional directives(条件编译预处理指令) 14.7Character-testing macros(字符检测宏) 14.8The assert() macro [assert() 宏] Programming pitfalls Quick syntax reference Exercises Appendix AList of C Keywords Appendix BPrecedence and Associativity of C Operators Appendix CASCII Character Codes Appendix DFundamental C Built-in Data Types
以下为对购买帮助不大的评价