找回密码
 立即注册
andchapter函数整数 | 企业管理 2022-09-23 92 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
作者以自己1985年在Bell实验室时发布的一篇论文为基础,联系自己的办公经验扩展变成这本对C程序员具有宝贵价值的经典著作。写作本书的起点不是要批评C言语,而是要帮助C程序员绕过编程过程中的圈套和妨碍。全书分为8章,分别从词法分析、语法语义、连接、库函数、预管理器、可移植性故障等几个方面分析了C编程中可能遇到的问题。最终,作者用一章的篇幅给出了若干具有实用价值的建议。本书合适有必定经验的C程序员阅览学习,即使你是C编程高手,本书也应当变成你的案头必备书本。第0章导读1第1章词法“圈套”51.1=不同于==61.2和不同于和81.3词法分析中的“贪心法”81.4整型常量101.5字符与字符串11第2章语法“圈套”152.1理解函数声明152.2运算符的优先级问题192.3注意作为句子结束象征的分号242.4switch句子262.5函数调用282.6“悬挂”else引发的问题29第3章语义“圈套”333.1指针与数组333.2非数组的指针393.3作为参数的数组声明413.4预防“举隅法”433.5空指针并非空字符串443.6鸿沟计算与不对称鸿沟453.7求值次序573.8运算符、和!593.9整数溢出613.10为函数main提供回来值62第4章连接654.1啥是连接器654.2声明与定义674.3命名抵触与static修饰符694.4形参、实参加回来值704.5检测外部类型774.6头文件80第5章库函数835.1回来整数的getchar函数845.2更新次序文件855.3缓冲输出与内存分配865.4使用errno检测错误885.5库函数signal89第6章预管理器936.1不能忽略宏定义中的空格946.2宏并不是函数946.3宏并不是句子996.4宏并不是类型定义101第7章可移植性故障1037.1应对C言语规范改变1047.2标识符称号的限制1067.3整数的大小1077.4字符是有符号整数仍是无符号整数1087.5移位运算符1097.6内存方位01107.7除法运算时发作的切断1117.8随机数的大小1137.9大小写转换1137.10首要释放,然后重新分配1157.11可移植性问题的一个比如116第8章建议与答案1218.1建议1228.2答案126附录APRINTF,VARARGS与STDARG145附录BKoenig和Moo配偶访谈167
RM.C.Traps.and.Pit.falls\E书说明.txt
RM.C.Traps.and.Pit.falls\RM-CTrapsandPitfalls.pdf
RM.C.Traps.and.Pit.falls\更多电子书下载.html
RM.C.Traps.and.Pit.falls\阅览器下载.html

(Based on a paper published by the author in Bell Labs in 1985, the author expanded his office experience into this classic book with valuable value to C programmers. The starting point of writing this book is not to criticize the C language, but to help C programmers bypass the traps and obstacles in the programming process. The whole book is divided into 8 chapters, respectively from the lexical analysis, syntax semantics, connection, library function, pre-manager, portability failure and other aspects to analyze the problems that may be encountered in C programming. Finally, the author gives some practical suggestions in one chapter. This book is suitable for C programmers with certain experience to read and learn, even if you are a master of C programming, this book should also become a must-have book for your desk. Chapter 0 Introduction 1 Chapter 1 Lexical "snares" 51.1 = different from == 61.2 and different from sum 81.3 The "greedy method" in lexical analysis 81.4 Integer constants 101.5 Characters and strings 11 Chapter 2 Syntax "snares" 152.1 Understanding function declarations 152.2 Operator precedence issues 192.3 Note the semicolon as a sentence-ending symbol 242.4 Switch sentences 262.5 Function calls 282.6 Problems caused by "dangling" else 29 Chapter 3 Semantics "snares" 333.1 Pointers and arrays 333.2 Pointers that are not arrays 393.3 Array declarations as parameters 413.4 Preventing "examples" 433.5 Null pointers are not empty strings 443.6 Divide computation and asymmetric divide 453.7 Order of evaluation 573.8 Operators, and !593.9 Integer overflow 613.10 Provide return value for function main 62 4th Chapter linking 654.1 What is a linker 654.2 Declarations and definitions 674.3 Naming conflicts and static modifiers 694.4 Formal parameters, actual return values ??704.5 Detecting external types 774.6 Header files 80 Chapter 5 Library functions 835.1 Getchar functions that return integers 845.2 Update sequence files 855.3 Buffered Output and Memory Allocation 865.4 Detecting Errors with errno 885.5 Library Function Signal 89 Chapter 6 The Premanager 936.1 Spaces in Macro Definitions Cannot Be Ignored 946.2 Macros Are Not Functions 946.3 Macros Are Not Sentences 996.4 Macros Are Not Type Definitions 101 Chapter 7 Portability 1037.1 Responding to C language specification changes 1047.2 Restrictions on identifier names 1067.3 Size of an integer 1077.4 Whether a character is a signed or unsigned integer 1087.5 Shift operators 1097.6 Memory location 01107.7 Cutoffs that occur during division 1117.8 Size of random numbers 1137.9 Case conversion 1137.10 First release, then reassign 1157.11 Portability problem one such as 116 Chapter 8 Suggestions and Answers 1218.1 Suggestions 1228.2 Answers 126 Appendix APRINTF, VARARGS and STDARG 145 Appendix B Koenig and Moo Spouse Interview 167
RM.C.Traps.and.Pit.falls\E-Book Description.txt
RM.C.Traps.and.Pit.falls\RM-CTrapsandPitfalls.pdf
RM.C.Traps.and.Pit.falls\More eBook Downloads.html
RM.C.Traps.and.Pit.falls\Viewer Downloads.html)

[下载]16513577405.rar




上一篇:C 语言基础
下一篇:qq for linux