简介
目录
目录
Chapter 1: Style / 风格
1.1 Names / 名字
1.2 Expressions and Statements / 表达式和语句
1.3 Consistency and Idioms / 一致性和习惯用语
1.4 Function Macros / 函数宏
1.5 Magic Numbers / 幻数
1.6 Comments / 注释
1.7 Why Bother? / 为何要在风格方面费心
Chapter 2: Algorithms and Data Structures / 算法与数据结构
2.1 Searching / 检索
2.2 Sorting / 排序
2.3 Libraries / 库
2.4 A Java Quicksort / 一个Java快速排序实现
2.5 O-Notation / 大O记法
2.6 Growing Arrays / 自增长数组
2.7 Lists / 表
2.8 Trees / 树
2.9 Hash Tables / 散列表
2.10 Summary / 小结
Chapter 3: Design and Implementation / 设计与实现
3.1 The Markov Chain Algorithm / 马尔可夫链算法
3.2 Data Structure Alternatives / 在多种数据结构之间选择
3.3 Building the Data Structure in C / 使用C语言构建数据结构
3.4 Generating Output / 生成输出
3.5 Java
3.6 C++
3.7 Awk and Perl / Awk和Perl
3.8 Performance / 性能
3.9 Lessons / 经验教训
Chapter 4: Interfaces / 接口
4.1 Comma-Separated Values / 逗号分隔值
4.2 A Prototype Library / 一个原型库
4.3 A Library for Others / 一个给他人用的库
4.4 A C++ Implementation / 一个C++实现
4.5 Interface Principles / 接口原则
4.6 Resource Management / 资源管理
4.7 Abort, Retry, Fail?
4.8 User Interfaces / 用户界面
Chapter 5: Debugging / 调试
5.1 Debuggers / 调试器
5.2 Good Clues, Easy Bugs / 线索明显、易于发现的错误
5.3 No Clues, Hard Bugs / 线索不明、难以发现的错误
5.4 Last Resorts / 最后的手段
5.5 Non-reproducible Bugs / 不可重现的错误
5.6 Debugging Tools / 调试工具
5.7 Other People's Bugs / 他人引入的错误
5.8 Summary / 小结
Chapter 6: Testing / 测试
6.1 Test as You Write the Code / 一边编码,一边测试
6.2 Systematic Testing / 系统化测试
6.3 Test Automation / 测试自动化
6.4 Test Scaffolds / 测试脚手架
6.5 Stress Tests / 压力测试
6.6 Tips for Testing / 测试心得
6.7 Who Does the Testing? / 谁来测试
6.8 Testing the Markov Program / 马尔可夫程序的测试
6.9 Summary / 小结
Chapter 7: Performance / 性能
7.1 A Bottleneck / 瓶颈
7.2 Timing and Profiling / 计时和剖析
7.3 Strategies for Speed / 加速策略
7.4 Tuning the Code / 代码调优
7.5 Space Efficiency / 空间利用率
7.6 Estimation / 评估
7.7 Summary / 小结
Chapter 8: Portability / 可移植性
8.1 Language / 语言
8.2 Headers and Libraries / 头文件和库
8.3 Program Organization / 程序架构
8.4 Isolation / 隔离
8.5 Data Exchange / 数据交换
8.6 Byte Order / 字节序
8.7 Portability and Upgrade / 可移植性和升级
8.8 Internationalization / 国际化
8.9 Summary / 小结
Chapter 9: Notation / 记法
9.1 Formatting Data / 数据格式化
9.2 Regular Expressions / 正则表达式
9.3 Programmable Tools / 可编程工具
9.4 Interpreters, Compilers, and Virtual Machines / 解释器、编译器和虚拟机
9.5 Programs that Write Programs / 写程序的程序
9.6 Using Macros to Generate Code / 用宏生成代码
9.7 Compiling on the Fly / 运行中编译
Epilogue / 后记
Appendix: Collected Rules / 规则汇编
光盘服务联系方式: 020-38250260 客服QQ:4006604884
云图客服:
用户发送的提问,这种方式就需要有位在线客服来回答用户的问题,这种 就属于对话式的,问题是这种提问是否需要用户登录才能提问