没有合适的资源?快使用搜索试试~ 我知道了~
The Design And Evolution Of C++.pdf(英文版清晰)
5星 · 超过95%的资源 需积分: 50 553 下载量 122 浏览量
2014-02-08
11:56:57
上传
评论 9
收藏 2.82MB PDF 举报
温馨提示
试读
506页
The Design And Evolution Of C++.pdf(英文版清晰)
资源推荐
资源详情
资源评论
The
Design and Evolution
of
C++
Bjarne Stroustrup
AT&T Bell Laboratories
Murray Hill, New Jersey
ADDISON-WESLEY PUBLISHING COMPANY
Reading, Massachusetts • Menlo Park, California • New York
Don Mills, Ontario • Wokingham, England • Amsterdam • Bonn • Sydney
Singapore • Tokyo • Madrid • San Juan • Milan • Paris
Library of Congress Cataloging-in-Publication Data
Stroustrup, Bjarne.
The Design and Evolution of C++ / Bjarne Stroustrup.
p. cm.
Includes bibliographical references and index.
ISBN 0-201-54330-3
1. C++ (Computer program language) I. Title.
II. Title: Design and Evolution of C plus plus.
QA76.73.C153S79 1994
005.13'3—dc20
93-50758
CIP
123456789 10-MA-969594
Copyright © 1994 by AT&T Bell Labs.
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 Roman and Courier by the author.
AT&T
Preface
He who does not plow,
must write.
- Martin A. Hansen
The ACM HOPL-2 conference on the History of Programming Languages asked me
to write a paper on the history of C++. This seemed a reasonable idea and a bit of an
honor, so I started writing. To get a more comprehensive and balanced view of C++'s
growth, I asked a few friends from the early days of C++ for their recollections. That
caused news of this project to travel through the grapevine. There, the story mutated,
and one day I received a message from a friend asking where he could buy my new
book on the design of C++. That email message is the real origin of this book.
Traditional books about programming and programming languages explain what a
language is and how to use it. However, many people are also curious about why a
language is the way it is and how it came to be that way. This book answers these last
two questions for C++. It explains how C++ evolved from its first design to the lan-
guage in use today. It describes the key problems, design aims, language ideas, and
constraints that shaped C++, and how they changed over time.
Naturally, C++ and the ideas about design and programming that shaped it didn't
just mutate by themselves. What really evolved was the C++ users' understanding of
their practical problems and of the tools needed to help solve them. Consequently,
this book also traces the key problems tackled using C++ and the views of the people
who tackled them in ways that influenced C++.
C++ is still a young language. Some of the issues discussed here are yet unknown
to many users. Many implications of decisions described here will not become obvi-
ous for years to come. This book presents my view of how C++ came about, what it
is, and what it ought to be. I hope this will be of help to people trying to understand
how best to use C++ and in the continuing evolution of C++.
iv Preface
The emphasis is on the overall design goals, practical constraints, and people that
shaped C++. The key design decisions relating to language features are discussed and
put into their historical context. The evolution of C++ is traced from C with Classes
through Release 1.0 and 2.0 to the current ANSI/ISO standards work and the explo-
sion of use, interest, commercial activity, compilers, tools, environments, and
libraries. C++'s relationship to C and Simula is discussed in detail. C++'s relation-
ship to other languages is discussed briefly. The design of major language facilities
such as classes, inheritance, abstract classes, overloading, memory management, tem-
plates, exception handling, run-time type information, and namespaces are discussed
in some detail.
The primary aim of this book is to give C++ programmers a better idea of the
background and fundamental concepts of their language and hopefully to inspire them
to experiment with ways of using C++ that are new to them. This book can also be
read by experienced programmers and students of programming languages and might
help them decide whether using C++ might be worth their while.
Acknowledgments
I am very grateful to Steve Clamage, Tony Hansen, Lorraine Juhl, Peter Juhl, Brian
Kernighan, Lee Knight, Doug Lea, Doug McIlroy, Barbara Moo, Jens Palsberg, Steve
Rumsby, and Christopher Skelly for reading complete drafts of this book. Their con-
structive comments caused major changes to the contents and organization of this
book. Steve Buroff, Martin Carroll, Sean Corfield, Tom Hagelskjær, Rick Hollin-
beck, Dennis Mancl, and Stan Lippman helped by commenting on selected chapters.
Also, thanks to Archie Lachner for asking for this book before I had thought of writ-
ing it.
Naturally, I owe thanks to the many people who helped make C++. In a sense, this
book is a tribute to them and some of their names can be found throughout the chap-
ters and in the index. Should I single out individuals, it must be Brian Kernighan,
Andrew Koenig, Doug McIlroy, and Jonathan Shopiro, each of whom has been a
steady source of help, encouragement, and ideas for more than a decade. Also, thanks
to Kristen Nygaard and Dennis Ritchie as the designers of Simula and C from which
the key ingredients of C++ were borrowed. Over the years, I have come to appreciate
them not only as brilliant and practical language designers, but also as gentlemen and
thoroughly likable individuals.
Murray Hill, New Jersey Bjarne Stroustrup
剩余505页未读,继续阅读
chunyou128
- 粉丝: 96
- 资源: 92
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页