• 21世纪C语言
21年品牌 40万+商家 超1.5亿件商品

21世纪C语言

正版保障 假一赔十 可开发票

10.79 1.9折 56 全新

库存206件

广东广州
认证卖家担保交易快速发货售后保障

作者Ben Klemens著

出版社东南大学出版社

ISBN9787564142056

出版时间2013-05

装帧平装

开本其他

定价56元

货号7991154

上书时间2024-09-06

灵感书店

三年老店
已实名 已认证 进店 收藏店铺

   商品详情   

品相描述:全新
商品描述
导语摘要
 是否你的C语言编程环境被限制在VI和CC上?是否C语言的内存管理机制依然像20世纪90年代那样困扰你?BENKLEMENS提出了这些常见的问题,并且展示了最新的工具如何使得C语言编程变得简单——能够帮助你调试、跟踪内存泄露、组织编译过程和管理源代码版本。
《21世纪C语言(影印版)》的作者是克莱门斯。

作者简介
BenKlemens为布鲁金斯学会、世界银行、美国国家心理卫生研究所和美国政府编写统计分析和集约计算模型。他同时也为布鲁金斯学会和自由软件基金会工作来确保软件作者有权使用他们编写的软件。

目录
Preface
Part I.The Environment
1.SetYourself Up for Easy Compilation
Use a Package Manager
Compiling C with Windows
POSIX for Windows
Compiling C with POSIX
Compiling C Without POSIX
Which Way to the Library?
A Few of My Favorite Flags
Paths
Runtime Linking
Using Makefiles
Setting Variables
The Rules
Using Libraries from Source
Using Libraries from Source(Even if Your Sysadmin Doesn’t Want You To)
Compiling C Programs via Here Document
Include Header Files from the Command Line
The Unified Header
Here Documents
Compiling from stdin
2.Debug,Test,Document
Using a Debugger
GDB Variables
Print Your Structures
Using Valgrind to Check for Errors
Unit Testing
Using a Program as a Library
Coverage
Interweaving Documentation
Doxygen
Literate Code with CW’EB
Error Checking
What Is the User’s Involvement in the Error?
The Context in Which the User Is Working
How Should the Error Indication Be Returned?
3.PackagingYourProject
The Shell
Replacing Shell Commands with Their Outputs
Use the Shell’s for Loops to Operate on a Set of Files
TestforFiles
fc
Makefiles VS.Shell Scripts
Packaging Your Code with Autotools
An Autotools Demo
Describing the Makefile with makefile.am
The configure Script
4.VersionControI
Changes via diff
Git’s Objects
The Stash
Trees and Their Branches
Merging
The Rebase
Remote Repositories
5.PlayingNicewithOthers
The Process
Writing to Be Read by Nonnatives
The Wrapper Function
Smuggling Data Structures Across the Border
Linking
Python Host
Compiling and Linking
The Conditional Subdirectory for Automake
Distutils Backed with Autotools
Part II.The Language
6.YOurPaIthePointer
Automatic,Static,and Manual Memory
Persistent State Variables
Pointers Without malloc
Structures Get Copied,Arrays Get Aliased
malloc and Memory—Twiddling
The Fault Is in Our Stars
All the Pointer Arithmetic You Need to Know
7.CSyntaxYouCanIgnore
Don’t Bother Explicitly Returning from main
Let Declarations Flow
Set Array Size at Runtime
Cast Less
Enums and Strings
Labels,gotos,switches,and breaks
gotO Considered
switch
Deprecate Float
8.Obstaclesand Oppounity
Cultivate Robust and Flourishing Macros
Preprocessor Tricks
Linkage with static and extem
Declare Externally Linked Elements Only in Header Files
The const Keyword
Noun—Adjective Form
Tension
Depth
The char const Issue
9.Text
Making String Handling Less Painful with asprintf
Security
Constant Strings
Extending Strings with asprintf
APean to strtok
Unicode
The Encoding for C Code
Unicode Libraries
The Sample Code
10.Better Structures
Compound Literals
Initialization via Compound Literals
Variadic Macros
Safely Terminated Lists
Foreach
Vectorize a Function
Designated Initializers
Initialize Arrays and Structs with Zeros
Typedefs Save the Day
A StyleNote
Return Multiple Items from a Function
Reporting Errors
Flexible Function Inputs
Declare Your Function.as printf-Style
Optional and Named Arguments
Polishing a Dull Function
The Void Pointer and the Structures It Points To
Functions with Generic Inputs
Generic Structures
11.Object-Oriented Programmingin C
What You Don’t Get(and Why You Won’t Miss It)
Scope
Overloaded with Operator Overloading
Extending Structures and Dictionaries
Extending a Structure
Implementing a Dictionary
Base Your Code on Pointers to Objects
Functions in Your Structs
Count References,
Example:A Substring Object
An Agent—Based Model of Group Formation
12.Libraries
GLib
POS.IX
Using mmap for Gigantic Data Sets
Easy Threading with Pthreads
The GNU Scientific Library
SQLite
The Queries
libxml and cURL
Epilogue
Glossary
Bibliography
Index

内容摘要
PART 1  The Environment
  In the wilds outside the scripting languages walled gardens,there is an abundance oftools that solve the big annoyances about C,but you have to hunt for them.And I meanhave to:many of these tools are absolutely necessary to write without pain.Ifyou aren tusing a debugger(standalone or within an IDE),then you re imposing arbitrary hardship on yourself.
  Itneedstobeascasyaspossiblefbryoutocompileyourprogramtomakeuseofexternallibraries,or else you re not going to use external libraries.It S not hard,but you haveto read up on how to make this happen.Fortunately,you have this book in front ofyounow.
  The following is an overview of Part hChapter 1 C0vers setting up the basiC enVironment,inCluding getting a paCkagC managCrand getting it to install all the requisite tools.This is all background for the interestingpart,where we compile programs using libraries from elsewhere.The process is prettystandardized,involving a small set of environment variables and recipes.Chapter 2 introduces tools for debugging,documenting,and testing,because whatgood is code until it S debugged,documented,and tested?
  Chapter 3 addresses Autotools,a system for packaging your code for distribution.Butthe chapter takes the long way,and SO also covers more about writing shell scripts andmakefiles.
  Nothing complicates life like other people.Therefore,Chapter 4 covers Gitasystemfor keeping track of the slightly different versions of a project on your and your c01.1aborators hard drives,and making the process of merging all those versions as simpleas possible.
  Other languages are a key part of the modern C environment,because so many languages advertise a C interface.Chapter 5 will offer some general notes on writing theinterface,and give an extended example with Python.
  ……

精彩内容

 抛弃你对于C语言的那些陈旧观念吧。你应该重新学习这门编程语言,它早已改变了过去的面貌。在《21世纪C语言(影印版)》中,你将了解到在其他C语言书籍中所缺失的那些近期新技术。C语言不仅仅是现代编程语言的基石,它本身也是一门现代语言,尤其适合于编写高效的、很好的应用程序。你需要放弃那些只有在大型机时代才有意义的旧习,转而选择相应的工具来使用这门改进的极其简单的语言。无论目前你是哪门编程语言的拥护者,你都不得不承认C语言也很出色。

 《21世纪C语言(影印版)》的作者是克莱门斯。


   相关推荐   

—  没有更多了  —

以下为对购买帮助不大的评价

此功能需要访问孔网APP才能使用
暂时不用
打开孔网APP