没有合适的资源?快使用搜索试试~ 我知道了~
《C语言接口与实现:创建可重用软件的技术》英文版
4星 · 超过85%的资源 需积分: 45 31 下载量 54 浏览量
2011-10-21
08:22:45
上传
评论
收藏 2.96MB PDF 举报
温馨提示
试读
533页
《c语言接口与实现:创建可重用软件的技术》概念清晰、实例详尽,是一本有关设计、实现和有效使用c 语言库函数,掌握创建可重用c 语言软件模块技术的参考指南。书中提供了大量实例,重在阐述如何用一种与语言无关的方法将接口设计实现独立出来,从而用一种基于接口的设计途径创建可重用的api。 《c语言接口与实现:创建可重用软件的技术》是所有c 语言程序员不可多得的好书,也是所有希望掌握可重用软件模块技术的人员的理想参考书,适合各层次的面向对象软件开发人员、系统分析员阅读。
资源推荐
资源详情
资源评论
Table of Contents
Copyright................................................................................................................................ 1
Addison-Wesley Professional Computing Series..................................................................... 1
Preface................................................................................................................................... 4
Acknowledgments................................................................................................................. 10
Chapter 1. Introduction......................................................................................................... 12
Section 1.1. Literate Programs....................................................................................................................................................................................................... 13
Section 1.2. Programming Style..................................................................................................................................................................................................... 19
Section 1.3. Efficiency.................................................................................................................................................................................................................... 22
Further Reading............................................................................................................................................................................................................................ 23
Exercises........................................................................................................................................................................................................................................ 24
Chapter 2. Interfaces and Implementations.......................................................................... 26
Section 2.1. Interfaces.................................................................................................................................................................................................................... 26
Section 2.2. Implementations....................................................................................................................................................................................................... 29
Section 2.3. Abstract Data Types.................................................................................................................................................................................................. 32
Section 2.4. Client Responsibilities............................................................................................................................................................................................... 35
Section 2.5. Efficiency.................................................................................................................................................................................................................... 41
Further Reading............................................................................................................................................................................................................................. 41
Exercises........................................................................................................................................................................................................................................ 42
Chapter 3. Atoms.................................................................................................................. 44
Section 3.1. Interface..................................................................................................................................................................................................................... 44
Section 3.2. Implementation......................................................................................................................................................................................................... 45
Further Reading............................................................................................................................................................................................................................. 53
Exercises........................................................................................................................................................................................................................................ 53
Chapter 4. Exceptions and Assertions................................................................................... 56
Section 4.1. Interface..................................................................................................................................................................................................................... 58
Section 4.2. Implementation......................................................................................................................................................................................................... 64
Section 4.3. Assertions.................................................................................................................................................................................................................. 70
Further Reading............................................................................................................................................................................................................................. 74
Exercises........................................................................................................................................................................................................................................ 75
Chapter 5. Memory Management.......................................................................................... 78
Section 5.1. Interface..................................................................................................................................................................................................................... 80
Section 5.2. Production Implementation...................................................................................................................................................................................... 84
Section 5.3. Checking Implementation......................................................................................................................................................................................... 87
Further Reading............................................................................................................................................................................................................................ 96
Exercises........................................................................................................................................................................................................................................ 97
Chapter 6. More Memory Management............................................................................... 100
Section 6.1. Interface.................................................................................................................................................................................................................... 101
Section 6.2. Implementation....................................................................................................................................................................................................... 103
Further Reading........................................................................................................................................................................................................................... 109
Exercises....................................................................................................................................................................................................................................... 111
Chapter 7. Lists.................................................................................................................... 114
Section 7.1. Interface.................................................................................................................................................................................................................... 114
Section 7.2. Implementation........................................................................................................................................................................................................ 119
Further Reading........................................................................................................................................................................................................................... 124
Exercises....................................................................................................................................................................................................................................... 125
Chapter 8. Tables................................................................................................................ 126
Section 8.1. Interface................................................................................................................................................................................................................... 126
Section 8.2. Example: Word Frequencies................................................................................................................................................................................... 129
Section 8.3. Implementation....................................................................................................................................................................................................... 136
Further Reading........................................................................................................................................................................................................................... 143
Exercises...................................................................................................................................................................................................................................... 144
Chapter 9. Sets.................................................................................................................... 148
Section 9.1. Interface................................................................................................................................................................................................................... 149
Section 9.2. Example: Cross-Reference Listings......................................................................................................................................................................... 151
Section 9.3. Implementation....................................................................................................................................................................................................... 159
Further Reading........................................................................................................................................................................................................................... 169
Exercises...................................................................................................................................................................................................................................... 169
Chapter 10. Dynamic Arrays................................................................................................ 172
Section 10.1. Interfaces................................................................................................................................................................................................................ 173
Section 10.2. Implementation...................................................................................................................................................................................................... 176
Further Reading.......................................................................................................................................................................................................................... 180
Exercises...................................................................................................................................................................................................................................... 180
Chapter 11. Sequences......................................................................................................... 182
Section 11.1. Interface.................................................................................................................................................................................................................. 182
Section 11.2. Implementation...................................................................................................................................................................................................... 185
C Interfaces and Implementations: Techniques for Creating Reusable Software. C Interfaces and Implementations: Techniques for Creating Reusable Software, ISBN: 9780321562807
Prepared for frliu@microsoft.com, Frank Liu
Copyright © 1997 by David R. Hanson.. This download file is made available for personal use only and is subject to the Terms of Service. Any other use requires prior written consent from
the copyright owner. Unauthorized use, reproduction and/or distribution are strictly prohibited and violate applicable laws. All rights reserved.
Further Reading........................................................................................................................................................................................................................... 191
Exercises....................................................................................................................................................................................................................................... 191
Chapter 12. Rings................................................................................................................ 194
Section 12.1. Interface.................................................................................................................................................................................................................. 194
Section 12.2. Implementation..................................................................................................................................................................................................... 198
Further Reading.......................................................................................................................................................................................................................... 207
Exercises...................................................................................................................................................................................................................................... 208
Chapter 13. Bit Vectors........................................................................................................ 210
Section 13.1. Interface.................................................................................................................................................................................................................. 210
Section 13.2. Implementation...................................................................................................................................................................................................... 213
Further Reading.......................................................................................................................................................................................................................... 224
Exercises...................................................................................................................................................................................................................................... 224
Chapter 14. Formatting....................................................................................................... 226
Section 14.1. Interface.................................................................................................................................................................................................................. 227
Section 14.2. Implementation..................................................................................................................................................................................................... 235
Further Reading.......................................................................................................................................................................................................................... 249
Exercises...................................................................................................................................................................................................................................... 250
Chapter 15. Low-Level Strings............................................................................................. 252
Section 15.1. Interface.................................................................................................................................................................................................................. 254
Section 15.2. Example: Printing Identifiers................................................................................................................................................................................ 260
Section 15.3. Implementation..................................................................................................................................................................................................... 262
Further Reading........................................................................................................................................................................................................................... 275
Exercises...................................................................................................................................................................................................................................... 276
Chapter 16. High-Level Strings........................................................................................... 280
Section 16.1. Interface................................................................................................................................................................................................................. 280
Section 16.2. Implementation..................................................................................................................................................................................................... 287
Further Reading.......................................................................................................................................................................................................................... 304
Exercises...................................................................................................................................................................................................................................... 305
Chapter 17. Extended-Precision Arithmetic........................................................................ 308
Section 17.1. Interface................................................................................................................................................................................................................. 308
Section 17.2. Implementation...................................................................................................................................................................................................... 314
Further Reading.......................................................................................................................................................................................................................... 332
Exercises...................................................................................................................................................................................................................................... 333
Chapter 18. Arbitrary-Precision Arithmetic........................................................................ 334
Section 18.1. Interface................................................................................................................................................................................................................. 334
Section 18.2. Example: A Calculator........................................................................................................................................................................................... 338
Section 18.3. Implementation..................................................................................................................................................................................................... 345
Further Reading.......................................................................................................................................................................................................................... 364
Exercises...................................................................................................................................................................................................................................... 365
Chapter 19. Multiple-Precision Arithmetic.......................................................................... 368
Section 19.1. Interface................................................................................................................................................................................................................. 369
Section 19.2. Example: Another Calculator................................................................................................................................................................................ 376
Section 19.3. Implementation..................................................................................................................................................................................................... 384
Further Reading........................................................................................................................................................................................................................... 413
Exercises....................................................................................................................................................................................................................................... 413
Chapter 20. Threads............................................................................................................ 416
Section 20.1. Interfaces................................................................................................................................................................................................................ 419
Section 20.2. Examples............................................................................................................................................................................................................... 429
Section 20.3. Implementations................................................................................................................................................................................................... 442
Further Reading........................................................................................................................................................................................................................... 474
Exercises...................................................................................................................................................................................................................................... 476
Interface Summary............................................................................................................. 480
AP................................................................................................................................................................................................................................................. 481
Arena........................................................................................................................................................................................................................................... 482
Arith............................................................................................................................................................................................................................................. 483
Array............................................................................................................................................................................................................................................ 483
ArrayRep...................................................................................................................................................................................................................................... 484
Assert........................................................................................................................................................................................................................................... 485
Atom............................................................................................................................................................................................................................................ 485
Bit................................................................................................................................................................................................................................................. 485
Chan............................................................................................................................................................................................................................................. 487
Except.......................................................................................................................................................................................................................................... 487
Fmt.............................................................................................................................................................................................................................................. 488
List............................................................................................................................................................................................................................................... 489
Mem............................................................................................................................................................................................................................................. 490
MP................................................................................................................................................................................................................................................ 491
Ring.............................................................................................................................................................................................................................................. 494
Sem.............................................................................................................................................................................................................................................. 495
Seq............................................................................................................................................................................................................................................... 496
Set................................................................................................................................................................................................................................................ 497
C Interfaces and Implementations: Techniques for Creating Reusable Software. C Interfaces and Implementations: Techniques for Creating Reusable Software, ISBN: 9780321562807
Prepared for frliu@microsoft.com, Frank Liu
Copyright © 1997 by David R. Hanson.. This download file is made available for personal use only and is subject to the Terms of Service. Any other use requires prior written consent from
the copyright owner. Unauthorized use, reproduction and/or distribution are strictly prohibited and violate applicable laws. All rights reserved.
Stack............................................................................................................................................................................................................................................ 498
Str................................................................................................................................................................................................................................................ 498
Table............................................................................................................................................................................................................................................. 501
Text.............................................................................................................................................................................................................................................. 502
Thread.......................................................................................................................................................................................................................................... 504
XP................................................................................................................................................................................................................................................. 505
Bibliography....................................................................................................................... 508
...................................................................................................................................................................................................................................................... 515
bvdindexIndex..................................................................................................................... 515
C Interfaces and Implementations: Techniques for Creating Reusable Software. C Interfaces and Implementations: Techniques for Creating Reusable Software, ISBN: 9780321562807
Prepared for frliu@microsoft.com, Frank Liu
Copyright © 1997 by David R. Hanson.. This download file is made available for personal use only and is subject to the Terms of Service. Any other use requires prior written consent from
the copyright owner. Unauthorized use, reproduction and/or distribution are strictly prohibited and violate applicable laws. All rights reserved.
Addison-Wesley Professional Computing Series
Brian W. Kernighan, Consulting Editor
Ken Arnold/John Peyton, A C User’s Guide to ANSI C
Tom Cargill, C++ Programming Style
William R. Cheswick/Steven M. Bellovin, Firewalls and Internet Security: Repelling
the Wily Hacker
David A. Curry, UNIX® System Security: A Guide for Users and System
Administrators
Erich Gamma/Richard Helm/Ralph Johnson/John Vlissides, Design Patterns:
Elements of Reusable Object-Oriented Software
David R. Hanson, C Interfaces and Implementations: Techniques for Creating
Reusable Software
John Lakos, Large Scale C++ Software Design
Scott Meyers, Effective C++: 50 Specific Ways to Improve Your Programs and
Designs
Scott Meyers, More Effective C++: 35 New Ways to Improve Your Programs and
Designs
Robert B. Murray, C++ Strategies and Tactics
David R. Musser/Atul Saini, STL Tutorial and Reference Guide: C++ Programming
with the Standard Template Library
John K. Ousterhout, Tcl and the Tk Toolkit
Craig Partridge, Gigabit Networking
J. Stephen Pendergrast Jr., Desktop KornShell Graphical Programming
Radia Perlman, Interconnections: Bridges and Routers
David M. Piscitello/A. Lyman Chapin, Open Systems Networking: TCP/IP and OSI
Stephen A. Rago, UNIX® System V Network Programming
Curt Schimmel, UNIX® Systems for Modern Architectures: Symmetric
Multiprocessing and Caching for Kernel Programmers
W. Richard Stevens, Advanced Programming in the UNIX® Environment
W. Richard Stevens, TCP/IP Illustrated, Volume 1: The Protocols
W. Richard Stevens, TCP/IP Illustrated, Volume 3: TCP for Transactions, HTTP,
NNTP, and the UNIX Domain Protocols
Gary R. Wright/W. Richard Stevens, TCP/IP Illustrated, Volume 2: The
Implementation
C Interfaces and Implementations: Techniques for Creating Reusable Software. C Interfaces and Implementations: Techniques for Creating Reusable Software, ISBN: 9780321562807
Prepared for frliu@microsoft.com, Frank Liu
Copyright © 1997 by David R. Hanson.. This download file is made available for personal use only and is subject to the Terms of Service. Any other use requires prior written consent from
the copyright owner. Unauthorized use, reproduction and/or distribution are strictly prohibited and violate applicable laws. All rights reserved.
剩余532页未读,继续阅读
资源评论
- 我叫程序2015-01-12书是不错的,就是英文的,我E文不太好。有点费劲啊!
爪哇鹅
- 粉丝: 848
- 资源: 29
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Servlet和JDBC实现三层架构
- Appium-Inspector-2024.6.1-win
- Screenshot_2024-06-14-21-22-39-202_net.csdn.csdnplus.jpg
- Appium-Server-GUI-windows-1.22.3-4
- 基于C语言+python实现的永磁同步电机矢量控制算法仿真+源码(毕业设计&课程设计&项目开发)
- APKPure_v3.20.05_apkpure.com.apk
- HKJC_AOSBS_PROD_L2.7R2Q_Build8172.apk
- jetson官网下载的官方资料
- 小游戏的java程序开发
- matlab GUI仿真资源.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功