没有合适的资源?快使用搜索试试~ 我知道了~
首页21st Century C.pdf
21st Century CThrow out your old ideas of C, and relearn a programming language that’s substantially outgrown its origins. With 21st Century C, you’ll discover up-to-date techniques that are absent from every other C text available. C isn’t just the foundation of modern programming languages, it is a modern language, ideal for writing efficient, state-of-the-art applications. Learn to dump old habits that made sense on mainframes, and pick up the tools you need to use this evolved and aggressively simple language. No matter what programming language you currently champion, you’ll agree that C rocks.
资源详情
资源评论
资源推荐
21st Century C
Ben Klemens
Beijing
•
Cambridge
•
Farnham
•
Köln
•
Sebastopol
•
Tokyo
21st Century C
by Ben Klemens
Copyright © 2013 Ben Klemens. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions
are also available for most titles (http://my.safaribooksonline.com). For more information, contact our
corporate/institutional sales department: 800-998-9938 or corporate@oreilly.com.
Editor: Nathan Jepson
Production Editor: Rachel Steely
Copyeditor: Linley Dolby
Proofreader: Teresa Horton
Indexer: Ellen Troutman
Cover Designer: Karen Montgomery
Interior Designer: David Futato
Illustrators: Robert Romano and Rebecca Demarest
November 2012: First Edition.
Revision History for the First Edition:
2012-10-12 First release
See http://oreilly.com/catalog/errata.csp?isbn=9781449327149 for release details.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of
O’Reilly Media, Inc. 21st Century C, the image of a common spotted cuscus, and related trade dress are
trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a
trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and author assume
no responsibility for errors or omissions, or for damages resulting from the use of the information con-
tained herein.
ISBN: 978-1-449-32714-9
[LSI]
1350398139
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Part I. The Environment
1. Set Yourself Up for Easy Compilation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Use a Package Manager 4
Compiling C with Windows 6
POSIX for Windows 6
Compiling C with POSIX 7
Compiling C Without POSIX 8
Which Way to the Library? 9
A Few of My Favorite Flags 10
Paths 12
Runtime Linking 14
Using Makefiles 15
Setting Variables 16
The Rules 18
Using Libraries from Source 21
Using Libraries from Source (Even if Your Sysadmin Doesn’t Want You To) 23
Compiling C Programs via Here Document 24
Include Header Files from the Command Line 25
The Unified Header 25
Here Documents 26
Compiling from stdin 27
2. Debug, Test, Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Using a Debugger 29
GDB Variables 32
Print Your Structures 34
Using Valgrind to Check for Errors 37
Unit Testing 39
iii
剩余297页未读,继续阅读
bugmenot1
- 粉丝: 3
- 资源: 15
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- stc12c5a60s2 例程
- Android通过全局变量传递数据
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0