没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
1183页
这本久负盛名的 C++经典教程,时隔八年之久,终迎来史无前例的重大升级。除令全球无数程序员从中受益,甚至为之迷醉的——C++ 大师 Stanley B. Lippman 的丰富实践经验,C++标准委员会原负责人 Josée Lajoie 对C++标准的深入理解,以及C++ 先驱 Barbara E. Moo 在 C++教学方面的真知灼见外,更是基于全新的 C++11标准进行了全面而彻底的内容更新。非常难能可贵的是,《C++ Primer 中文版(第5版)》所有示例均全部采用 C++11 标准改写,这在经典升级版中极其罕见——充分体现了 C++ 语言的重大进展及其全面实践。书中丰富的教学辅助内容、醒目的知识点提示,以及精心组织的编程示范,让这本书在 C++ 领域的权威地位更加不可动摇。无论是初学者入门,或是中、高级程序员提升,本书均为不容置疑的首选。 stanley b. lippman目前是微软公司 visual c++ 团队的架构师。他从1984年开始在贝尔实验室与c++的设计者bjarne stroustrup一起从事c++的设计与开发。他在迪士尼和梦工厂从事动画制作,还担任过jpl的高级顾问。 josee lajoie曾经是ibm加拿大研究中心c/c++编译器开发团队的成员,在iso c++标准委员会工作了7年,担任过iso核心语言工作组的主席和c++ report杂志的专栏作家。 barbara e. moo是拥有25年软件经验的独立咨询顾问。在at&t,她与stroustrup、lippman一起管理过复杂的c++开发项目。
资源推荐
资源详情
资源评论
C++ Primer, Fifth Edition
C++ Primer, Fifth Edition
Stanley
B. Lippman
Josée Lajoie
Barbara E. Moo
Upper Saddle River, NJ • Boston • Indianapolis • San Francisco
New York • Toronto • Montreal • London • Munich • Paris • Madrid
Capetown • Sidney • Tokyo • Singapore • Mexico City
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 the publisher was aware of a trademark claim, the designations have been
printed with initial capital letters or in all capitals.
The authors and publisher have taken care in the preparation of this book, but
make no expressed or implied warranty of any kind and assume no responsibility
for errors or omissions. No liability is assumed for incidental or consequential
damages in connection with or arising out of the use of the information or programs
contained herein.
The
publisher offers excellent discounts on this book when ordered in quantity for
bulk purchases or special sales, which may include electronic versions and/or
custom covers and content particular to your business, training goals, marketing
focus, and branding interests. For more information, please contact:
U.
S. Corporate and Government Sales
(800) 382-3419
corpsales@pearsontechgroup.com
For
sales outside the U. S., please contact:
C++ Primer, Fifth Edition
International Sales
international@pearsoned.com
Visit
us on the Web: informit.com/aw
Library of Congress Cataloging-in-Publication Data
Lippman,
Stanley B.
C++ primer / Stanley B. Lippman, Josée Lajoie, Barbara E. Moo. – 5th ed.
p.
cm.
Includes
index.
ISBN 0-321-71411-3 (pbk. : alk. paper) 1. C++ (Computer program language) I.
Lajoie, Josée. II.
Moo, Barbara E. III. Title.
QA76.73.C153L57697 2013
005.13'3–
dc23
2012020184
Copyright
© 2013 Objectwrite Inc., Josée Lajoie and Barbara E. Moo
All
rights reserved. Printed in the United States of America. This publication is
protected by copyright, and permission must be obtained from the publisher prior to
any prohibited reproduction, storage in a retrieval system, or transmission in any
form or by any means, electronic, mechanical, photocopying, recording, or likewise.
To obtain permission to use material from this work, please submit a written
request to Pearson Education, Inc., Permissions Department, One Lake Street,
Upper Saddle River, New Jersey 07458, or you may fax your request to (201) 236-
3290.
ISBN
-13: 978-0-321-71411-4
ISBN-10: 0-321-71411-3
Text
printed in the United States on recycled paper at Courier in Westford,
Massachusetts.
First printing, August 2012
To Beth, who makes this, and all things, possible.
——
To Daniel and Anna, who contain virtually all possibilities.
—SBL
C++ Primer, Fifth Edition
To Mark and Mom, for their unconditional love and support.
—JL
To Andy, who taught me to program and so much more.
—BEM
Contents
Preface
Chapter
1 Getting Started
1.1
Writing a Simple C++ Program
1.1.1
Compiling and Executing Our Program
1.2
A First Look at Input/Output
1.3
A Word about Comments
1.4 Flow of Control
1.4.1
The
while Statement
1.4.2
The
for Statement
1.4.3
Reading an Unknown Number of Inputs
1.4.4 The
if Statement
1.5
Introducing Classes
1.5.1 The
Sales_item Class
1.5.2
A First Look at Member Functions
1.6 The Bookstore Program
Chapter
Summary
Defined
Terms
Part
I The Basics
Chapter 2 Variables and Basic Types
2.1
Primitive Built-in Types
2.1.1 Arithmetic Types
C++ Primer, Fifth Edition
2.1.2 Type Conversions
2.1.3
Literals
2.2
Variables
2.2.1
Variable Definitions
2.2.2 Variable Declarations and Definitions
2.2.3
Identifiers
2.2.4 Scope of a Name
2.3
Compound Types
2.3.1 References
2.3.2
Pointers
2.3.3
Understanding Compound Type Declarations
2.4
const Qualifier
2.4.1
References to
const
2.4.2
Pointers and
const
2.4.3
Top-Level
const
2.4.4
constexpr and Constant Expressions
2.5
Dealing with Types
2.5.1 Type Aliases
2.5.2
The
auto Type Specifier
2.5.3
The
decltype Type Specifier
2.6
Defining Our Own Data Structures
2.6.1 Defining the
Sales_data Type
2.6.2
Using the
Sales_data Class
2.6.3
Writing Our Own Header Files
Chapter Summary
Defined
Terms
Chapter
3 Strings, Vectors, and Arrays
3.1 Namespace
using Declarations
3.2
Library
string Type
3.2.1
Defining and Initializing
strings
3.2.2
Operations on
strings
剩余1182页未读,继续阅读
ytwu001mailieaccn
- 粉丝: 0
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页