وبلاگ بلیان

C程序设计语言 = The C programming language

معرفی کتاب «C程序设计语言 = The C programming language» نوشتهٔ (美)Brian W. Kernighan, (美)Dennis M. Ritchie著 ; 徐宝文, 李志译; 克尼汉; Rnighan Ke; 里奇; Tchie Ri; 徐宝文; 李志، منتشرشده توسط نشر 机械工业出版社 در سال 2004. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «C程序设计语言 = The C programming language» در دستهٔ بدون دسته‌بندی قرار دارد.

本书是由 C 语言的设计者 Brian W. Kernighan 和 Dennis M. Ritchie 编写的一部介绍标准 C语言及其程序设计方法的权威性经典著作。全面、系统地讲述了 C 语言的各个特性及程序设计的基本方法,包括基本概念、类型和表达式、控制流、函数与程序结构、指针与数组、结构、输入与输出、UNlX 系统接口、标准库等内容。本书的讲述深入浅出,配合典型例证,通俗易懂,实用性强,适合作为大专院校计算机专业或非计算机专业的 C 语言教材,也可以作为从事计算机相关软硬件开发的技术人员的参考书。 封面......Page 1 中文版序......Page 7 译者序......Page 9 序......Page 11 第一版序......Page 13 引言......Page 14 目录 ......Page 17 1.1 入门......Page 22 1.2 变量与算术表达式......Page 24 1.3 for语句......Page 28 1.4 符号常量......Page 29 1.5 字符输入/输出......Page 30 1.6 数组......Page 36 1.7 函数......Page 38 1.8 参数 --传值调用......Page 40 1.9 字符数组......Page 41 1.10 外部变量与作用域......Page 43 2.2 数据类型及长度......Page 47 2.3 常量......Page 48 2.4 声明......Page 50 2.5 算术运算符......Page 51 2.6 关系运算符与逻辑运算符 ......Page 52 2.7 类型转换......Page 53 2.8 自增运算符与自减运算符......Page 56 2.9 按位运算符......Page 58 2.10 赋值运算符与表达式......Page 59 2.11 条件表达式......Page 60 2.12 运算符优先级与求值次序......Page 61 3.2 if-else语句......Page 64 3.3 else-if语句......Page 65 3.4 switch语句......Page 66 3.5 while循环与for循环......Page 68 3.6 do-while循环......Page 71 3.7 break语句与continue语句......Page 72 3.8 goto语句与标号......Page 73 4.1 函数的基本知识......Page 75 4.2 返回非整型值的函数......Page 78 4.3 外部变量......Page 80 4.4 作用域规则......Page 85 4.5 头文件......Page 87 4.7 寄存器变量......Page 88 4.9 初始化......Page 89 4.10 递归......Page 91 4.11 C预处理器......Page 92 5.1 指针与地址......Page 96 5.2 指针与函数参数......Page 98 5.3 指针与数组......Page 100 5.4 地址算术运算......Page 103 5.5 字符指针与函数......Page 106 5.6 指针数组以及指向指针的指针......Page 109 5.7 多维数组......Page 112 5.9 指针与多维数组......Page 114 5.10 命令行参数......Page 115 5.11 指向函数的指针......Page 119 5.12 复杂声明......Page 121 6.1 结构的基本知识......Page 127 6.2 结构与函数......Page 129 6.3 结构数组......Page 131 6.4 指向结构的指针......Page 135 6.5 自引用结构......Page 137 6.6 表查找......Page 140 6.7 类型定义......Page 142 6.8 联合......Page 144 6.9 位字段......Page 145 7.1 标准输入/输出......Page 147 7.2 格式化输出 --printf函数......Page 148 7.3 变长参数......Page 150 7.4 格式化输入 --scanf函数......Page 151 7.5 文件访问......Page 154 7.6 错误处理 --stderr和exit......Page 156 7.7 行输入和行输出......Page 157 7.8 其它函数......Page 159 8.1 文件描述符......Page 162 8.2 低级I/O --read和write......Page 163 8.3 open、creat、close和unlink......Page 164 8.4 随机访问 --lseek ......Page 166 8.5 实例 --fopen和getc函数的实现......Page 167 8.6 实例 --目录列表......Page 170 8.7 实例 --存储分配程序......Page 175 附录A 参考手册......Page 179 附录B 标准库......Page 234 附录C 变更小结......Page 252 索引......Page 254

This book is meant to help the reader learn how to program in C. It is the definitive reference guide, now in a second edition. Although the first edition was written in 1978, it continues to be a worldwide best-seller. This second edition brings the classic original up to date to include the ANSI standard.

From the Preface:

We have tried to retain the brevity of the first edition. C is not a big language, and it is not well served by a big book. We have improved the exposition of critical features, such as pointers, that are central to C programming. We have refined the original examples, and have added new examples in several chapters. For instance, the treatment of complicated declarations is augmented by programs that convert declarations into words and vice versa. As before, all examples have been tested directly from the text, which is in machine-readable form.

As we said in the first preface to the first edition, C "wears well as one's experience with it grows." With a decade more experience, we still feel that way. We hope that this book will help you to learn C and use it well.


The original authors of C and the first UNIX system present this concise and powerful guide to ANSI standard C programming. This version, building on Kerninghan and Ritchie's classic The C Programming Language, brings readers up-to-date with the finalized ANSI standard for C while teaching users how to take advantage of noted C features like economy of expression, its full set of operators and more. One reader claimed "Just about every C programmer I respect learned C from this book," while another raved that this book is the "Bible of C." This book is regarded by just about anyone in the C field as the canonical work on the C language and is essential reading for C programmers.

The definitive reference guide to C programming from K&R for writing good code that works and is easy to modify Learn how to program in C from the developers of C, Brian Kernighan and Dennis Ritchie. Intended for those with at least some experience with one other language (even if you are a novice), this book contains a tutorial introduction to get new users started as soon as possible and separate chapters on each major feature: Types, operators, and expressions Control flow Functions and program structure Pointers and arrays Structures Input and output This second edition of The C Programming Language describes C as defined by the ANSI standard and includes a reference manual that conveys the essentials of the standard in a smaller space for easy comprehension for programmers.'K&R is one of my favorite books. The style of the tutorial chapters is so deceptively light and simple and the manual so crisp. Much of C's reputation of simplicity comes from the clarity and great little examples from this book. My 1978 copy has lost its cover and my K&R2 is somewhat dog eared. Above all, K&R is a useful book.'Bjarne Stroustrup, designer and original implementer of C++, and author of The C++ Programming Language This updated edition covers ANSI C. The authors present the complete guide to ANSI standard C language programming. Written by the developers of C, this new version helps readers keep up with the finalized ANSI standard for C while showing how to take advantage of C's rich set of operators, economy of expression, improved control flow, and data structures. The 2/E has been completely rewritten with additional examples and problem sets to clarify the implementation of difficult language constructs. For years, C programmers have let K&R guide them to building well-structured and efficient programs. Now this same help is available to those working with ANSI compilers. Includes detailed coverage of the C language plus the official C language reference manual for at-a-glance help with syntax notation, declarations, ANSI changes, scope rules, and the list goes on and on. The C Programming Language (the revised second edition) , an authoritative classic book by Brian W.Kernighan and Dennis M.Ritchie, the code signers of C Programming, introduces the standard C language and its programming approaches. It represents in a comprehensive and systematic way the special characteristics and programming approaches, including its basic concepts, patterns, structures, input and output, UNIX system interface and standard library, etc.. Introduces the features of the C programming language, discusses data types, variables, operators, control flow, functions, pointers, arrays, and structures, and looks at the UNIX system interface Very well known, classic introduction to the C Programming Language. Both a text for learning, a reference, and, to some, the definition of proper C language features and use.
دانلود کتاب C程序设计语言 = The C programming language