没有合适的资源?快使用搜索试试~ 我知道了~
首页C++程序设计原理与实践(2nd).pdf
C++程序设计原理与实践(2nd).pdf
4星 · 超过85%的资源 需积分: 47 185 下载量 186 浏览量
更新于2023-06-07
评论 5
收藏 9.55MB PDF 举报
Programming-Principles and Practice Using C++ 2nd.pdf C++程序设计原理与实践 2014年 第二版
资源详情
资源评论
资源推荐
P
rogramming: Principles and Practice Using C++
S
econd Edition
Bjarne Stroustrup
U
pper Saddle River, NJ • Boston • Indianapolis • San Francisco
New York • Toronto • Montreal • London • Munich • Paris • Madrid
Capetown • Sydney • Tokyo • Singapore • Mexico City
M
any 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.
A complete list of photo sources and credits appears on pages 1273
–1274.
T
he author 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.
For information about buying this title in bulk quantities, or for special sales opportunities (which may include electronic
versions; custom cover designs; and content particular to your business, training goals, marketing focus, or branding
interests), please contact our corporate sales department at corpsales@pearsoned.com
or
(800) 382-3419.
For government sales inquiries, please contact governmentsales@pearsoned.com
.
F
or questions about sales outside the United States, please contact international@pearsoned.com
.
V
isit us on the Web: informit.com/aw
L
ibrary of Congress Cataloging-in-Publication Data
S
troustrup, Bjarne, author.
Programming : principles and practice using C++ / Bjarne Stroustrup. — Second edition.
pages cm
Includes bibliographical references and index.
ISBN 978-0-321-99278-9 (pbk. : alk. paper)
1. C++ (Computer program language) I. Title.
QA76.73.C153S82 2014
005.13'3—dc23
2014004197
Copyright © 2014 Pearson Education, Inc.
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-99278-9
ISBN-10: 0-321-99278-4
Text printed in the United States on recycled paper at RR Donnelley in Crawfordsville, Indiana.
First printing, May 2014
C
ontents
P
reface
C
hapter 0 Notes to the Reader
0.1 T
he structure of this book
0.1.1 G
eneral approach
0.1.2 D
rills, exercises, etc.
0.1.3 W
hat comes after this book?
0.2
A philosophy of teaching and learning
0.2.1 T
he order of topics
0.2.2 P
rogramming and programming language
0.2.3 P
ortability
0.3 P
rogramming and computer science
0.4 C
reativity and problem solving
0.5 R
equest for feedback
0.6 R
eferences
0.7 B
iographies
B
jarne Stroustrup
L
awrence “Pete” Petersen
C
hapter 1 Computers, People, and Programming
1.1 I
ntroduction
1.2 S
oftware
1.3 P
eople
1.4 C
omputer science
1.5 C
omputers are everywhere
1.5.1 S
creens and no screens
1.5.2 S
hipping
1.5.3 T
elecommunications
1.5.4 M
edicine
1.5.5 I
nformation
1.5.6
A vertical view
1.5.7 S
o what?
1.6 I
deals for programmers
P
art I The Basics
C
hapter 2 Hello, World!
2.1 P
rograms
2.2 T
he classic first program
2.3 C
ompilation
2.4 L
inking
2.5 P
rogramming environments
C
hapter 3 Objects, Types, and Values
3.1 I
nput
3.2 V
ariables
3.3 I
nput and type
3.4 O
perations and operators
3.5
Assignment and initialization
3.5.1
An example: detect repeated words
3.6 C
omposite assignment operators
3.6.1
An example: find repeated words
3.7 N
ames
3.8 T
ypes and objects
3.9 T
ype safety
3.9.1 S
afe conversions
3.9.2 U
nsafe conversions
C
hapter 4 Computation
4.1 C
omputation
4.2 O
bjectives and tools
4.3 E
xpressions
4.3.1 C
onstant expressions
4.3.2 O
perators
4.3.3 C
onversions
4.4 S
tatements
4.4.1 S
election
4.4.2 I
teration
4.5 F
unctions
4.5.1 W
hy bother with functions?
4.5.2 F
unction declarations
4.6 v
ector
4.6.1 T
raversing a
v
ector
4.6.2 G
rowing a
v
ector
4.6.3
A numeric example
4.6.4
A text example
4.7 L
anguage features
C
hapter 5 Errors
5.1 I
ntroduction
5.2 S
ources of errors
5.3 C
ompile-time errors
5.3.1 S
yntax errors
5.3.2 T
ype errors
5.3.3 N
on-errors
5.4 L
ink-time errors
剩余967页未读,继续阅读
Intel0011
- 粉丝: 60
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- zigbee-cluster-library-specification
- JSBSim Reference Manual
- 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直接复制
信息提交成功
评论4