The C++ Programming Language.pdf下载分享
- 资源分享
- 11小时前
- 1热度
- 0评论
资料简介
《C++编程语言》是Bjarne Stroustrup编写的权威性教材,本书详细介绍了C++的各个方面,并提供了大量的实例来帮助读者深入理解。这本书对于初学者和有经验的程序员都是一个宝贵的资源,涵盖了类、内存管理等核心概念。
-
文件名称:The C++ Programming Language.pdf
-
文件类型:PDF文档
-
文件标签:C++、编程语言、计算机科学

内容预览
The
C+ +
Programming
Language
Third Edition
Bjarne Stroustrup
AT&T Labs
Murray Hill, New Jersey
Addison-Wesley
An Imprint of Addison Wesley Longman, Inc.
Reading, Massachusetts
• Harlow, England
• Menlo Park, California
Berkeley, California
• Don Mills, Ontario
• Sydney
Bonn
• Amsterdam
• Tokyo
• Mexico City
ii
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 Addison-Wesley was aware of a trademark claim, the designations have been
printed in initial capital letters or all capital letters
The 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 contained herein.
The publisher offers discounts on this book when ordered in quantity for special sales. For more information please contact:
Corporate & Professional Publishing Group
Addison-Wesley Publishing Company
One Jacob Way
Reading, Massachusetts 01867
Library of Congress Cataloging-in-Publication Data
Stroustrup, Bjarne
The C++ Programming Language / Bjarne Stroustrup. — 3rd. ed.
p.
cm.
Includes index.
ISBN 0-201-88954-4
- C++ (Computer Programming Language) I. Title
QA76.73.C153S77
1997
97-20239
005.13’3—dc21
CIP
Copyright © 1997 by AT&T
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or
by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the
publisher. Printed in the United States of America.
This book was typeset in Times and Courier by the author.
ISBN 0-201-88954-4
Printed on recycled paper
1 2 3 4 5 6 7 8 9—CRW—0100999897
First printing, June 1997
Contents
Contents
iii
Preface
v
Preface to Second Edition
vii
Preface to First Edition
ix
Introductory Material
1
1 Notes to the Reader .....................................................................
3
2 A Tour of C++ .............................................................................
21
3 A Tour of the Standard Library ..................................................
45
Part I: Basic Facilities
67
4 Types and Declarations ...............................................................
69
5 Pointers, Arrays, and Structures ..................................................
87
6 Expressions and Statements ........................................................
107
7 Functions .....................................................................................
143
8 Namespaces and Exceptions .......................................................
165
9 Source Files and Programs ..........................................................
197
iv
Contents
Part II: Abstraction Mechanisms
221
10 Classes ........................................................................................
223
11 Operator Overloading .................................................................
261
12 Der...
