作者:Bjarne Stroustrup
AT&T Labs Murray Hill, New Jersey
Preface
Programming is understanding.
- Kristen Nygaard
I find using C++ more enjoyable than ever. C++’s support for design and programming hasimproved dramatically over the years, and lots of new helpful techniques have been developed forits use. However, C++ is not just fun. Ordinary practical programmers have achieved significantimprovements in productivity, maintainability, flexibility, and quality in projects of just about anykind and scale. By now, C++ has fulfilled most of the hopes I originally had for it, and also succeededat tasks I hadn’t even dreamt of.This book introduces standard C++† and the key programming and design techniques supportedby C++. Standard C++ is a far more powerful and polished language than the version of C++ introducedby the first edition of this book. New language features such as namespaces, exceptions,templates, and runtimetype identification allow many techniques to be applied more directly thanwas possible before, and the standard library allows the programmer to start from a much higherlevel than the bare language.
About a third of the information in the second edition of this book came from the first. Thisthird edition is the result of a rewrite of even larger magnitude. It offers something to even themost experienced C++ programmer; at the same time, this book is easier for the novice to approachthan its predecessors were. The explosion of C++ use and the massive amount of experience accumulatedas a result makes this possible.
The definition of an extensive standard library makes a difference to the way C++ concepts canbe 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 awelldesignedlibrary than it is to understand the details of its implementation. Therefore, the standardlibrary can be used to provide realistic and interesting examples well before a reader can beassumed to understand its inner workings. The standard library itself is also a fertile source of programmingexamples and design techniques.
__________________
† ISO/IEC 14882, Standard for the C++ Programming Language.
没有评论:
发表评论