C語言接口與實現

C語言接口與實現 pdf epub mobi txt 電子書 下載2025

出版者:人民郵電齣版社
作者:(美)David R. Hanson
出品人:圖靈教育
頁數:519
译者:
出版時間:2010-8
價格:79.00元
裝幀:
isbn號碼:9787115231130
叢書系列:圖靈程序設計叢書·C/C++係列
圖書標籤:
  • C
  • 編程
  • C/C++
  • Programming
  • C語言
  • 計算機
  • 程序設計
  • 計算機科學
  • C語言
  • 編程
  • 接口
  • 實現
  • 計算機
  • 軟件
  • 開發
  • 基礎
  • 算法
  • 結構
想要找書就要到 小美書屋
立刻按 ctrl+D收藏本頁
你會得到大驚喜!!

具體描述

可重用的軟件模塊是構建大規模可靠應用程序的基石,創建可重用的軟件模塊是每個程序員和項目經理必須掌握的技能。C語言對創建可重用的API提供的語言和功能支持非常少,雖然C程序員寫應用時都會用到API和庫,但卻很少有人去創建和發布新的能廣泛應用的API。本書介紹用一種基於接口的設計方法創建可重用的API,這一方法將接口與實現分離開來,且與語言無關。書中詳細描述瞭24個接口及其實現,便於讀者深入瞭解此方法。這些接口涉及很多計算機領域的知識,包括數據結構、算法、字符串處理和並發程序。

本書是C語言領域的的經典名著,齣版十餘年仍暢銷不衰,是幾代程序員倍加推崇的力作。

著者簡介

David R.Hanson 普林斯頓大學計算機科學係教授,有著二十多年編程語言研究經驗。他曾經同貝爾實驗室閤作開展研究工作,是適用於UNIX係統上的高質量C編譯器Icc的開發者之一。另著有A Retargetable C Compiler: Design and Implementation一書。

圖書目錄

1 Introduction 1
1.1 Literate Programs 2
1.2 Programming Style 8
1.3 Efficiency 11
Further Reading 12
Exercises 13
2 Interfaces and Implementations 15
2.1 Interfaces 15
2.2 Implementations 18
2.3 Abstract Data Types 21
2.4 Client Responsibilities 24
2.5 Efficiency 30
Further Reading 30
Exercises 31
3 Atoms 33
3.1 Interface 33
3.2 Implementation 34
Further Reading 42
4 Exceptions and Assertions 45
4.1 Interface 47
.4.2 Implementation 53
4.3 Assertions 59
Further Reading 63
Exercises 64
5 Memory Management 67
5.1 Interface 69
5.2 Production Implementation 73
5.3 Checking Implementation 76
Further Reading 85
Exercises 86
6 More Memory Management 89
6.1 Interface 90
6.2 Implementation 92
Further Reading 98
Exercises 100
7 Lists 103
7.1 Interface 103
7.2 Implementation 108
Further Reading 113
Exercises 114
8 Tables 115
8.1 Interface 115
8.2 Example: Word Frequencies 118
8.3 Implementation 12 5
Further Reading 132
Exercises 133
9 Sets 137
9.1 Interface 138
9.2 Example: Cross-Reference Listings 140
9.3 Implementation 148
9.3.1 Member Operations 150
9.3.2 Set Operations 154
Further Reading 158
Exercises 158
10 Dynamic Arrays
10.1 Interfaces 162
10.2 Implementation 165
Further Reading 169
Exercises 169
11 Sequences 171
11.1 Interface 171
11.2 Implementation 174
Further Reading 180
Exercises 180
12 Rings 183
12.1 Interface 183
12.2 Implementation 187
Further Reading 196
Exercises 197
13 Bit Vectors 199
13.1 Interface 199
13.2 Implementation 202
13.2.1 Member Operations 204
13.2.2 Comparisons 209
13.2.3 Set Operations 211
Further Reading 213
Exercises 21314 Formatting 215
14.1 Interface 216
14.1.1 Formatting Functions 216
14.1.2 Conversion Functions 219
14.2 Implementation 224
14.2.1 Formatting Functions 225
14.2.2 Conversion Functions 232
Further Reading 238
Exercises 239
15 Low-LevelStrings 241
15.1 Interface 243
15.2 Example: Printing Identifiers 249
15.3 Implementation 251
15.3.1 String Operations 252
15.3.2 Analyzing Strings 258
15.3.3 Conversion Functions 263
Further Reading 264
Exercises 265
16 High-LevelStrings 269
16.1 Interface 269
16.2 Implementation 276
16.2.1 String Operations 281
16.2.2 Memory Management 285
16.2.3 Analyzing Strings 288
16.2.4 Conversion Functions 293
Further Reading 293
Exercises 294
17 Extended-Precision Arithmetic 297
17.1 Interface 297
17.2 Implementation 303
17.2.1 Addition and Subtraction 305
17.2.2 Multiplication 307
17.2.3 Division and Comparison 309
17.2.4 Shifting 315
17.2.5 String Conversions 319
Further Reading 321
Exercises 322
18 Arbitrary-Precision Arithmetic 323
18.1 Interface 323
18.2 Example: A Calculator 327
18.3 Implementation 334
18.3.1 Negation and Multiplication 337
18.3.2 Addition and Subtraction 338
18.3.3 Division 342
18.3.4 Exponentiation 343
18.3.5 Comparisons 346
18.3.6 Convenience Functions 347
18.3.7 Shifting 349
18.3.8 String and Integer Conversions 350
Further Reading 353
Exercises 354
19 Multiple-Precision Arithmetic 357
19.1 Interface 358
19.2 Example: Another Calculator 365
19.3 Implementation 373
19.3.1 Conversions 377
19.3.2 Unsigned Arithmetic 380
19.3.3 Signed Arithmetic 383
19.3.4 Convenience Functions 388
19.3.5 Comparisons and Logical Operations 395
19.3.6 String Conversions 399
Further Reading 402
Exercises 402
20 Threads 405
20.1 Interfaces 408
20.1.1 Threads 409
20.1.2 General Semaphores 413
20.1.3 Synchronous Communication Channels 417
20.2 Examples 418
20.2.1 Sorting Concurrently 418
20.2.2 Critical Regions 423
20.2.3 Generating Primes 426
20.3 Implementations 431
20.3.1 Synchronous Communication Channels 431
20.3.2 Threads 434
20.3.3 Thread Creation and Context-Switching 446
20.3.4 Preemption 454
20.3.5 General Semaphores 457
20.3.6 Context-Switching on the MIPS and ALPHA 459
Further Reading 463
Exercises 465
Interface Summary 469
Bibliography 497
Index 505
· · · · · · (收起)

讀後感

評分

刚才看到有人指责这本书说像是吃了“夹生饭”,还举了个例子,不过他举的例子是错的。我通读过这本书的,简单说说自己的看法。(相关的书评作者已经撤销了评论) 我04年买了机械的译本,感觉不好,后来又买了人邮的影印版;这次人邮再次出译本,加之手头又有英文电子版,所以...  

評分

評分

評分

評分

看到很多媒体上都评论这本书怎么好,怎么好,我读过这本书,却没有感觉到任何令我惊喜的东西,很是失望。 当时我正在思考如何将C运用到实际项目中,而且自己也总结了一些方法,怎么模块化设计,如何借鉴面向对象的思想进行管理,如何接口与实现分开,如何处理错误等等,而且这...

用戶評價

评分

異常框架甚是喜歡。

评分

此書太棒瞭!強烈推薦

评分

好難懂啊~

评分

代碼優雅,內容豐富,c程序員必看

评分

大一時候看的? 不過跳瞭好多,當時當成做數據結構入門瞭,暑假在傢時候突然想翻一下,迴校後大緻過瞭一遍,有些東西當時看得懂就嗬嗬瞭......

本站所有內容均為互聯網搜索引擎提供的公開搜索信息,本站不存儲任何數據與內容,任何內容與數據均與本站無關,如有需要請聯繫相關搜索引擎包括但不限於百度google,bing,sogou

© 2025 book.quotespace.org All Rights Reserved. 小美書屋 版权所有