正版图书,可开发票,请放心购买。
¥ 79.95 7.3折 ¥ 109 全新
库存6件
作者[奥地利]克里斯托弗·普雷斯奇
出版社东南大学出版社
ISBN9787576605624
出版时间2023-03
装帧平装
开本16开
定价109元
货号29552665
上书时间2024-10-20
C语言编程的专家建议很难找到。虽然面向对象编程语言的参考帮助有很多,但C语言的同类信息却少得令人吃惊。通过这本实践指南,初学者和有经验的C语言程序员都能找到相关的设计决策指导,包括在构建大规模程序时如何将其循序渐进地应用于现役代码。
作为设计模式社区的领头人,Christopher Preschern解答了如何结构化C程序、应对错误处理、设计柔性接口等问题。无论你是在寻找特定模式设计或是想了解特定主题的设计选择,本书都能助你一臂之力。在部分中,你将学习如何实现专门针对C编程语言的实用设计知识。
C语言编程的专家建议很难找到。虽然面向对象编程语言的参考帮助有很多,但C语言的同类信息却少得令人吃惊。通过这本实践指南,初学者和有经验的C语言程序员都能找到相关的设计决策指导,包括在构建大规模程序时如何将其循序渐进地应用于现役代码。
作为设计模式社区的领头人,Christopher Preschern解答了如何结构化C程序、应对错误处理、设计柔性接口等问题。无论你是在寻找特定模式设计或是想了解特定主题的设计选择,本书都能助你一臂之力。在第一部分中,你将学习如何实现专门针对C编程语言的实用设计知识。
Preface
Part Ⅰ. C Patterns
1.ErrorHandling
Running Example
Function Split
Guard Clause
Samurai Principle
Goto Error Handling
Cleanup Record
Object—Based Error Handling
Summary
Further Reading
0uflook
2.Returning Error Information
Running Example
Return Status Codes
Return Relevant Errors
Special Return Values
Log Errors
Summary
Further Reading
0utlook
3.MemowManagement
Data Storage and Problems with Dynamic Men
Running Example
Stack First
Eternal Memory
Lazy Cleanup
Dedicated Ownership
Allocation Wrapper
Pointer Check
Memory Pool
Summary
Further Reading
0utlook
4.ReturningDatafromC Functions
Running Example
Return V甜ue
out.Parameters
Aggregate Instance
Immutable Instance
Caller.Owned Buffer
Callee灿locates
Summary
0utlook
5.Data LifetimeandOwnership
Stateless Software—Module
Software.Module with Global State
Caller.Owned Instance
Shared Instance
Summary
Further Reading
Outlook
6.FlexibleAPIs
Header Files
Handie
Dynamic Interfaca
Function Control
Summary
Further Reading
0utlook
7.Flexible Iterator Interfaces
Running Example
Index Access
Cursor Iterator
Callback Iterator
Summary
Further Reading
Outlook
8.Organizing Files in Modular Programs
Running Example
Include Guard
Software—Module Directories
Global Include Directory
Self-Contained Component
APICopy
Summary
0utlook
9.Escaping#ifdefHell
Running Example
AvoidVariants
Isolated Primitives
Atomic Primitives
Abstraction Layer
Split Variant Implementations
Summary
Further Reading
0utlook
Part Ⅱ.Pattern Stories
lO.Implementing Logging Functionality
The Pattern Story
File Organization
Central Logging Function
Logging Source Filter
Conditional Logging
Multiple Logging Destinations
File Logging
Cross—Platform Files
Using the Logger
Summary
11.Buildinga UserManagementSystem
The Pattern Story
Data Organization
File Organization
Authentication:Error Handling
Authentication:Error Logging
Adding Users:Error Handling
Iterating
Using the User Management System
Summary
12.Conclusion
What Youve Learned
Further Reading
Closing Remarks
lndex
C语言编程的专家建议很难找到。虽然面向对象编程语言的参考帮助有很多,但C语言的同类信息却少得令人吃惊。通过这本实践指南,初学者和有经验的C语言程序员都能找到相关的设计决策指导,包括在构建大规模程序时如何将其循序渐进地应用于现役代码。
作为设计模式社区的领头人,Christopher Preschern解答了如何结构化C程序、应对错误处理、设计柔性接口等问题。无论你是在寻找特定模式设计或是想了解特定主题的设计选择,本书都能助你一臂之力。在部分中,你将学习如何实现专门针对C编程语言的实用设计知识。
本书都能助你一臂之力。在第一部分中,你将学习如何实现专门针对c编程语言的实用设计知识。第二部分包括应用c编程模式实现更大的程序。你将从中学习到模式是如何通过良好的设计决策提高工作效率的。
— 没有更多了 —
以下为对购买帮助不大的评价