C++_Third Edition
This is the third edition of C++: The Complete Reference. In the years that have transpired since the second edition, C++ has undergone many changes. Perhaps the most important is that it is now a standardized language. In November of 1997, the ANSI/ISO committee charged with the task of standardizing C++, passed out of committee an International Standard for C++. This event marked the end of a very long, and at times contentious, process. As a member of the ANSI/ISO C++ committee, I watched the progress of the emerging standard, following each debate and argument. Near the end, there was a world-wide, daily dialogue, conducted via e-mail, in which the pros and cons of this or that issue were put forth, and finally resolved. While the process was longer and more exhausting than anyone at first envisioned, the result was worth
the trouble. We now have a standard for what is, without question, the most important programming language in the world.
During standardization, several new features were added to C++. Some are relatively small. Others, like the STL (Standard Template Library) have ramifications that will affect the course of programming for years to come. The net effect of the additions was that the scope and range of the language were greatly expanded. For example, because of the addition of the numeric library, C++ can be more conveniently used for numeric processing. Of course, the information contained in this edition reflects the International Standard for C++ defined by the ANSI/ISO committee, including its new features.
What's New in the Third Edition
The third edition of C++: The Complete Reference is greatly expanded beyond its predecessor. In fact, the length of the book has nearly doubled! The main reason for this is that the third edition now includes comprehensive coverage of both the standard function library and the standard class library. Neither of these were sufficiently well defined when the second edition was being prepared to warrant inclusion. With the standardization of C++ being complete, these topics can finally be added.
Aside from these major additions, the third edition also includes a substantial amount of new material scattered throughout the book. Most is the result of features that have been added to C++ since the previous edition was prepared. New or expanded coverage includes the following topics: the Standard Template Library, run-time type ID (RTTI), the new casting operators, new features of templates, namespaces, new-style headers, and the modern-style I/O system. Also, some fundamental changes to the way new and delete are implemented are described and several new keywords are discussed.
Frankly, if you have not taken a close look at C++ for the past few years, you will be surprised at how much it has grown and how many new features have been added. It's not the same old C++ that you learned years ago.
What's Inside
This books covers in detail all aspects of the C++ language, including its foundation: C.
The book is divided into these five parts:
_ The C Subset —The foundation of C++
_ The C++ language
_ The Standard Function Library
_ The Standard Class Library
_ Sample C++ applications
Part One provides a comprehensive discussion of the C subset of C++. As most readers will know, C is the foundation upon which C++ was built. It is the C subset that defines the bedrock features of C++, including such things as for loops and if statements. It also defines the essential nature of C++'s block structure, pointers, and functions. Since many readers are already familiar with and proficient in C, discussing the C subset separately in Part One prevents the knowledgeable C programmer from having to "wade through" reams of information he or she already knows. Instead, the experienced C programmer can simply turn to the sections of this book that cover the C++-specific features.
Part Two discusses in detail the extensions and enhancements to C added by C++. These include its object-oriented features such as classes, constructors, destructors, and templates. Thus, Part Two covers those constructs that "make C++, C++." Part Three describes the standard function library and Part Four examines the standard class library, including the STL (Standard Template Library). Part Five shows two practical examples of applying C++ and object-oriented programming.
A Book for All Programmers
This C++ reference is designed for all C++ programmers, regardless of their experience level. It does assume, however, a reader able to create at least a simple program. If you are just learning C++, this book will make an excellent companion to any C++ tutorial and serve as a source of answers to your specific questions. Experienced C++ pros will find the coverage of the many new features added by the International Standard especially useful.
If You're Using Windows
If your computer uses Windows, then you have chosen the right language. C++ is completely at home with Windows programming. However, none of the programs in this book are Windows programs. Instead, they are console-based programs. The reason for this is easy to understand: Windows programs are, by their nature, large and complex. The overhead required to create even a minimal Windows skeletal program is 50 to 70 lines of code. To write Windows programs that demonstrate the features of C++ would require hundreds of lines of code each. Put simply, Windows is not an appropriate environment in which to discuss the features of a programming language.
However, you can still use a Windows-based compiler to compile the programs in this book because the compiler will automatically create a console session in which to execute your program.
Don't Forget: Code On The Web
Remember, the source code for all of the programs in this book is available free-of-charge on the Web at http://www.osborne.com. Downloading this code prevents you from having to type in the examples.
For Further Study
C++: The Complete Reference is your gateway into the "Herb Schildt" series of programming books. Here is a partial list of Schildt's other books.
If you want to learn more about C++, then you will find these books especially helpful.
C++ From the Ground Up
Teach Yourself C++
Expert C++
If you want to learn more about C, the foundation of C++, we recommend
Teach Yourself C
C: The Complete Reference
The Annotated ANSI C Standard
If you will be developing programs for the Web, you will want to read
Java: The Complete Reference
co-authored by Herbert Schildt and Patrick Naughton.
Finally, if you want to program for Windows, we recommend
Windows 98 Programming From the Ground Up
Windows NT 4 From the Ground Up
MFC Programming From the Ground Up
When you need solid answers, fast, turn to Herbert Schildt, the recognized authority on programming.
Download: C++_Third Edition
During standardization, several new features were added to C++. Some are relatively small. Others, like the STL (Standard Template Library) have ramifications that will affect the course of programming for years to come. The net effect of the additions was that the scope and range of the language were greatly expanded. For example, because of the addition of the numeric library, C++ can be more conveniently used for numeric processing. Of course, the information contained in this edition reflects the International Standard for C++ defined by the ANSI/ISO committee, including its new features.
What's New in the Third Edition
The third edition of C++: The Complete Reference is greatly expanded beyond its predecessor. In fact, the length of the book has nearly doubled! The main reason for this is that the third edition now includes comprehensive coverage of both the standard function library and the standard class library. Neither of these were sufficiently well defined when the second edition was being prepared to warrant inclusion. With the standardization of C++ being complete, these topics can finally be added.
Aside from these major additions, the third edition also includes a substantial amount of new material scattered throughout the book. Most is the result of features that have been added to C++ since the previous edition was prepared. New or expanded coverage includes the following topics: the Standard Template Library, run-time type ID (RTTI), the new casting operators, new features of templates, namespaces, new-style headers, and the modern-style I/O system. Also, some fundamental changes to the way new and delete are implemented are described and several new keywords are discussed.
Frankly, if you have not taken a close look at C++ for the past few years, you will be surprised at how much it has grown and how many new features have been added. It's not the same old C++ that you learned years ago.
What's Inside
This books covers in detail all aspects of the C++ language, including its foundation: C.
The book is divided into these five parts:
_ The C Subset —The foundation of C++
_ The C++ language
_ The Standard Function Library
_ The Standard Class Library
_ Sample C++ applications
Part One provides a comprehensive discussion of the C subset of C++. As most readers will know, C is the foundation upon which C++ was built. It is the C subset that defines the bedrock features of C++, including such things as for loops and if statements. It also defines the essential nature of C++'s block structure, pointers, and functions. Since many readers are already familiar with and proficient in C, discussing the C subset separately in Part One prevents the knowledgeable C programmer from having to "wade through" reams of information he or she already knows. Instead, the experienced C programmer can simply turn to the sections of this book that cover the C++-specific features.
Part Two discusses in detail the extensions and enhancements to C added by C++. These include its object-oriented features such as classes, constructors, destructors, and templates. Thus, Part Two covers those constructs that "make C++, C++." Part Three describes the standard function library and Part Four examines the standard class library, including the STL (Standard Template Library). Part Five shows two practical examples of applying C++ and object-oriented programming.
A Book for All Programmers
This C++ reference is designed for all C++ programmers, regardless of their experience level. It does assume, however, a reader able to create at least a simple program. If you are just learning C++, this book will make an excellent companion to any C++ tutorial and serve as a source of answers to your specific questions. Experienced C++ pros will find the coverage of the many new features added by the International Standard especially useful.
If You're Using Windows
If your computer uses Windows, then you have chosen the right language. C++ is completely at home with Windows programming. However, none of the programs in this book are Windows programs. Instead, they are console-based programs. The reason for this is easy to understand: Windows programs are, by their nature, large and complex. The overhead required to create even a minimal Windows skeletal program is 50 to 70 lines of code. To write Windows programs that demonstrate the features of C++ would require hundreds of lines of code each. Put simply, Windows is not an appropriate environment in which to discuss the features of a programming language.
However, you can still use a Windows-based compiler to compile the programs in this book because the compiler will automatically create a console session in which to execute your program.
Don't Forget: Code On The Web
Remember, the source code for all of the programs in this book is available free-of-charge on the Web at http://www.osborne.com. Downloading this code prevents you from having to type in the examples.
For Further Study
C++: The Complete Reference is your gateway into the "Herb Schildt" series of programming books. Here is a partial list of Schildt's other books.
If you want to learn more about C++, then you will find these books especially helpful.
C++ From the Ground Up
Teach Yourself C++
Expert C++
If you want to learn more about C, the foundation of C++, we recommend
Teach Yourself C
C: The Complete Reference
The Annotated ANSI C Standard
If you will be developing programs for the Web, you will want to read
Java: The Complete Reference
co-authored by Herbert Schildt and Patrick Naughton.
Finally, if you want to program for Windows, we recommend
Windows 98 Programming From the Ground Up
Windows NT 4 From the Ground Up
MFC Programming From the Ground Up
When you need solid answers, fast, turn to Herbert Schildt, the recognized authority on programming.
Download: C++_Third Edition

0 comments:
Post a Comment