ISBN-10:
0201889544
ISBN-13:
9780201889543
Pub. Date:
07/01/1997
Publisher:
Addison-Wesley
The C++ Programming Language / Edition 3

The C++ Programming Language / Edition 3

by Bjarne Stroustrup
Current price is , Original price is $79.99. You

Temporarily Out of Stock Online

Please check back later for updated availability.

This item is available online through Marketplace sellers.

Product Details

ISBN-13: 9780201889543
Publisher: Addison-Wesley
Publication date: 07/01/1997
Edition description: REV
Pages: 911
Product dimensions: 7.38(w) x 9.16(h) x 1.29(d)

About the Author


Bjarne Stroustrup designed and implemented C++. Over the last decade, C++ has become the most widely used ''object-oriented'' programming language by making abstraction techniques affordable and manageable for mainstream projects. Using C++ as his tool, Stroustrup has pioneered the use of object-oriented and generic programming techniques in application areas where efficiency is a premium; examples include general systems programming, switching, simulation, graphics, user-interfaces, embedded systems, and scientific computation.

His book The C++ Programming Language (Addison-Wesley, first edition 1985, second edition 1991, third edition 1997) is the most widely read book of its kind and has been translated into 9 languages. A later book, The Design and Evolution of C++ (Addison-Wesley, 1994) broke new ground in the description of the way a programming language was shaped by ideas, ideals, problems, and practical constraints. In addition to his four books, Stroustrup has published more than sixty academic and more popular papers. He is actively involved in the ANSI/ISO standardization of C++.

Bjarne Stroustrup is an AT&T Bell Laboratories Fellow and an AT&T Fellow. He received the 1993 ACM Grace Murray Hopper award for his early work on C++ and is an ACM fellow. He served on the Danish Research Council. He was named one of "America's twelve top young scientists" by Fortune Magazine in 1990 and as one of "the 20 most influential people in the computer industry in the last 20 years" by BYTE magazine in 1995.

Bjarne was born in and grew up in Aarhus, the second largest city in Denmark. He went to Aarhus University studying inthe department of computer science DAIMI gaining the Danish equivalent to a good Masters degree (a Cand.Scient. degree is rarely taken in significantly less than six years - at least it wasn't then). Aarhus is a wonderful town of about 250,000 people beautifully sited on the East coast of Jutland.

Bjarne did his Ph.D. work on design of distributed systems in the Computing Laboratory of Cambridge University, England. He is a member of Churchill College where he and his wife, Marian, spent some wonderful and busy years and where their daughter, Annemarie, was born. Cambridge is another wonderful town and one of the magical places of the world.

In 1979, Bjarne Stroustrup, together with his wife and daughter, moved to New Jersey to join the Computer Science Research Center of Bell Telephone Laboratories. Over the years, they lived in Summit, Meyersville, and (now) Watchung - all about 10 minutes drive from Bell Labs' main research site in Murray Hill. A son, Nicholas, was born in Meyersville. After the 1984 breakup of the Bell System Bell Labs became AT&T Bell Labs, and after the 1995 breakup of AT&T, AT&T Bell Labs was itself split into AT&T Labs and Lucent Technologies Bell Labs. The research part of AT&T Labs, where Bjarne now works is the half of Bell Labs Information Sciences Research that AT&T kept to itself as Lucent and NCR were spun off.

Read an Excerpt

PREFACE:

The C Programming Language, Third Edition

Bjarne Stroustrup


Preface


Programming is understanding.
- Kristen Nygaard

I find using C more enjoyable than ever. C's support for design and programming has improved dramatically over the years, and lots of new helpful techniques have been developed for its use. However, C is not just fun. Ordinary practical programmers have achieved significant improvements in productivity, maintainability, flexibility, and quality in projects of just about any kind and scale. By now, C has fulfilled most of the hopes I originally had for it, and also succeeded at tasks I hadn't even dreamt of.

This book introduces standard C* and the key programming and design techniques supported by C. Standard C is a far more powerful and polished language than the version of C introduced by the first edition of this book. New language features such as name spaces, exceptions, templates, and run-time type identification allow many techniques to be applied more directly than was possible before, and the standard library allows the programmer to start from a much higher level than the bare language.

About a third of the information in the second edition of this book came from the first. This third edition is the result of a rewrite of even larger magnitude. It offers something to even the most experienced C programmer; at the same time, this book is easier for the novice to approach that its predecessors were. The explosion of C use and the massive amount of experience accumulated as a result makes this possible.

The definition of an extensive standard library makes adifference to the way C concepts can be presented. As before, this book presents C independently of any particular implementation, and as before, the tutorial chapters present language constructs and concepts in a "bottom up" order so that a construct is used only after it has been defined. However, it is much easier to use a well-designed library than it is to understand the details of its implementation. Therefore the standard library can be used to provide realistic and interesting examples well before a reader can be assumed to understand its inner workings. the standard library itself is also a fertile source of programming examples and design techniques.

This book presents every major C language feature and the standard library. It is organized around language and library facilities. However, features are presented in the context of their use. That is, the focus is on the language as the tool for design and programming rather than on the language in itself. This book demonstrates key techniques that make C effective and teaches the fundamental concepts necessary for mastery. Except where illustrating technicalities, examples are taken from the domain of systems software. A companion, The Annotated C Language Standard, presents the complete language definition together with annotations to make it more comprehensible.

The primary aim of this book is to help the reader understand how the facilities offered by C support key programming techniques. The aim is to take the reader far beyond the point where he or she gets code running primarily by copying examples and emulation programming styles from other languages. Only a good understanding of the ideas behind the language facilities leads to mastery. Supplemented by implementation documentation, the information provided is sufficient for completing significant real-world projects. The hope is that this book will help the reader gain new insights and become a better programmer and designer.

Acknowledgements
In addition to the people mentioned in the acknowledgment section of the first and second editions, I would like to thank Matt Austern, Hans Boehm, Don Caldwell, Lawrence Crowl, Alan Feuer, Andrew Forrest, Tim Griffin, Peter Juhl, Brian Kernighan, Andrew Koenig, Mike Mowbray, Rob Murray, Lee Nackman, Joseph Newcomer, Alex Stepanov, David Vandevoorde, Peter Weinberger, and Chris Van Wyk for commenting on draft chapters of this third edition.

I would also like to thank the volunteers on the C standards committees who did an immense amount of constructive work to make C what it is today. It is slightly unfair to single out individuals, but it would be even more unfair not to mention anyone, so I'd like to especially mention Mike Ball, Dag Brück, Sean Corfield, Ted Goldstein, Kim Knutilla, Andrew Koenig, Josée Lajoie, Dmitry Lenkov, Nathan Myers, Martin O'Riordan, Tom Plum, Jonathan Shopiro, John Spicer, Jerry Schwarz, Alex Stepanov, and Mike Vilot, as people who each directly cooperated with me over some part of C and its standard library.

Bjarne Stroustrup
Murray Hill, New Jersey


*At the time of writing, the C Standard is still only a "Final Committee Draft Standard." However, no significant changes to the language or the standard library are anticipated.



Table of Contents

INTRODUCTORY MATERIAL.

Notes to the Reader.
A Tour of C.
A Tour of the Standard Library.

I. BASIC FACILITIES.

Types and Declarations.
Pointers, Arrays, and Structures.
Expressions and Statements.
Functions.
Namespaces and Exceptions.
Source Files and Programs.

II. ABSTRACTION MECHANISMS.

Classes.
Operator Overloading.
Derived Classes.
Templates.
Exception Handling.
Class Hierarchies.

III. THE STANDARD LIBRARY.

Library Organization and Containers.
Standard Containers.
Algorithms and Function Objects.
Iterators and Allocators.
Strings.
Streams.
Numerics.

IV. DESIGN USING C.

Development and Design.
Design and Programming.
Roles of Classes.

APPENDICES.

The C Grammar.
Compatibility.
Technicalities.

Preface

PREFACE:

The C Programming Language, Third Edition

Bjarne Stroustrup


Preface


Programming is understanding.
- Kristen Nygaard

I find using C more enjoyable than ever. C's support for design and programming has improved dramatically over the years, and lots of new helpful techniques have been developed for its use. However, C is not just fun. Ordinary practical programmers have achieved significant improvements in productivity, maintainability, flexibility, and quality in projects of just about any kind and scale. By now, C has fulfilled most of the hopes I originally had for it, and also succeeded at tasks I hadn't even dreamt of.

This book introduces standard C* and the key programming and design techniques supported by C. Standard C is a far more powerful and polished language than the version of C introduced by the first edition of this book. New language features such as name spaces, exceptions, templates, and run-time type identification allow many techniques to be applied more directly than was possible before, and the standard library allows the programmer to start from a much higher level than the bare language.

About a third of the information in the second edition of this book came from the first. This third edition is the result of a rewrite of even larger magnitude. It offers something to even the most experienced C programmer; at the same time, this book is easier for the novice to approach that its predecessors were. The explosion of C use and the massive amount of experience accumulated as a result makes this possible.

The definition of an extensive standard library makesadifference to the way C concepts can be presented. As before, this book presents C independently of any particular implementation, and as before, the tutorial chapters present language constructs and concepts in a "bottom up" order so that a construct is used only after it has been defined. However, it is much easier to use a well-designed library than it is to understand the details of its implementation. Therefore the standard library can be used to provide realistic and interesting examples well before a reader can be assumed to understand its inner workings. the standard library itself is also a fertile source of programming examples and design techniques.

This book presents every major C language feature and the standard library. It is organized around language and library facilities. However, features are presented in the context of their use. That is, the focus is on the language as the tool for design and programming rather than on the language in itself. This book demonstrates key techniques that make C effective and teaches the fundamental concepts necessary for mastery. Except where illustrating technicalities, examples are taken from the domain of systems software. A companion, The Annotated C Language Standard, presents the complete language definition together with annotations to make it more comprehensible.

The primary aim of this book is to help the reader understand how the facilities offered by C support key programming techniques. The aim is to take the reader far beyond the point where he or she gets code running primarily by copying examples and emulation programming styles from other languages. Only a good understanding of the ideas behind the language facilities leads to mastery. Supplemented by implementation documentation, the information provided is sufficient for completing significant real-world projects. The hope is that this book will help the reader gain new insights and become a better programmer and designer.

Acknowledgements
In addition to the people mentioned in the acknowledgment section of the first and second editions, I would like to thank Matt Austern, Hans Boehm, Don Caldwell, Lawrence Crowl, Alan Feuer, Andrew Forrest, Tim Griffin, Peter Juhl, Brian Kernighan, Andrew Koenig, Mike Mowbray, Rob Murray, Lee Nackman, Joseph Newcomer, Alex Stepanov, David Vandevoorde, Peter Weinberger, and Chris Van Wyk for commenting on draft chapters of this third edition.

I would also like to thank the volunteers on the C standards committees who did an immense amount of constructive work to make C what it is today. It is slightly unfair to single out individuals, but it would be even more unfair not to mention anyone, so I'd like to especially mention Mike Ball, Dag Brück, Sean Corfield, Ted Goldstein, Kim Knutilla, Andrew Koenig, Josée Lajoie, Dmitry Lenkov, Nathan Myers, Martin O'Riordan, Tom Plum, Jonathan Shopiro, John Spicer, Jerry Schwarz, Alex Stepanov, and Mike Vilot, as people who each directly cooperated with me over some part of C and its standard library.

Bjarne Stroustrup
Murray Hill, New Jersey


*At the time of writing, the C Standard is still only a "Final Committee Draft Standard." However, no significant changes to the language or the standard library are anticipated.



Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews

The C++ Programming Language 5 out of 5 based on 0 ratings. 1 reviews.
Guest More than 1 year ago
I am a student, entering my junior year of college, and this summer, I'm on internship with Hewlett Packard. My mentor lent me a ton of books to refer to while working on my project, and I also went to the company library and got some books on my own; however NONE of them come close to comparing to THIS book!! I haven't taken c++ in about a year, and my recent classes have dealt with other aspects of computer science where I haven't needed to use my c++. The last language I learned was PERL which as you all know is the total opposite as far as syntax, etc.. However, this book is soooooooooo valuable. It is simple enough for me to understand, while at the same time, it is extremely thorough!! Great examples and explainations... Especially good for the programmer who hasn't looked at c++ in a while, and just needs a refresher. I recommend this book for EVERYONE, ESPECIALLY STUDENTS... I'm going to go out and get my own because I can see it's an EXTREMELY VALUABLE information source!!!