×
超值优惠券
¥50
100可用 有效期2天

全场图书通用(淘书团除外)

关闭
暂无评论
图文详情
  • ISBN:9787576605624
  • 装帧:平装-胶订
  • 册数:暂无
  • 重量:暂无
  • 开本:24cm
  • 页数:21,281页
  • 出版时间:2023-03-01
  • 条形码:9787576605624 ; 978-7-5766-0562-4

内容简介

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 You've Learned Further Reading Closing Remarks lndex
展开全部

作者简介

克里斯托弗·普雷斯奇,Christopher Preschern组织了设计模式会议并发起了改进模式编写的倡议。作为ABB公司的C程序员,他收集并记录了如何编写工业级代码的实践知识。他曾在格拉茨科技大学讲授编码以及代码质量的相关课程,拥有计算机科学博士学位。

预估到手价 ×

预估到手价是按参与促销活动、以最优惠的购买方案计算出的价格(不含优惠券部分),仅供参考,未必等同于实际到手价。

确定
快速
导航