C++ FAQs, Second Edition

Book description

In a concise and direct question-and-answer format, C++ FAQs, Second Edition brings you the most efficient solutions to more than four hundred of the practical programming challenges you face every day.

Moderators of the on-line C++ FAQ at comp.lang.c++, Marshall Cline, Greg Lomow, and Mike Girou are familiar with C++ programmers' most pressing concerns. In this book, the authors concentrate on those issues most critical to the professional programmer's work, and they present more explanatory material and examples than is possible on-line. This book focuses on the effective use of C++, helping programmers avoid combining seemingly legal C++ constructs in incompatible ways.

This second edition is completely up-to-date with the final ANSI/ISO C++ Standard. It covers some of the smaller syntax changes, such as "mutable"; more significant changes, such as RTTI and namespaces; and such major innovations as the C++ Standard Library, including the STL. In addition, this book discusses technologies such as Java, CORBA, COM/COM+, and ActiveX--and the relationship all of these have with C++. These new features and technologies are iconed to help you quickly find what is new and different in this edition.

Each question-and-answer section contains an overview of the problem and solution, fuller explanations of concepts, directions for proper use of language features, guidelines for best practices and practices to avoid, and plenty of working, stand-alone examples. This edition is thoroughly cross-referenced and indexed for quick access.

Get a value-added service! Try out all the examples from this book at www.codesaw.com. CodeSaw is a free online learning tool that allows you to experiment with live code from your book right in your browser.


Table of contents

  1. Title Page
  2. Copyright Page
  3. Contents
  4. Acknowledgments
  5. Part I. Preliminaries
    1. Chapter 1. Introduction
    2. Chapter 2. Basic C++ Syntax and Semantics
    3. Chapter 3. Understanding the Management Perspective
    4. Chapter 4. The Architectural Perspective
  6. Part II. Object-Oriented Design
    1. Chapter 5. Object-Oriented Fundamentals
    2. Chapter 6. Specification of Observable Behavior
    3. Chapter 7. Proper Inheritance
    4. Chapter 8. Detecting and Correcting Improper Inheritance
    5. Chapter 9. Error Handling Strategies
    6. Chapter 10. Testing Strategies
  7. Part III. Language Facilities
    1. Chapter 11. References
    2. Chapter 12. New and Delete
    3. Chapter 13. Inline Functions
    4. Chapter 14. Const Correctness
    5. Chapter 15. Namespaces
    6. Chapter 16. Using Static
    7. Chapter 17. Derived Classes
    8. Chapter 18. Access Control
    9. Chapter 19. Friend Classes and Friend Functions
    10. Chapter 20. Constructors and Destructors
    11. Chapter 21. Virtual Functions
    12. Chapter 22. Initialization Lists
    13. Chapter 23. Operator Overloading
    14. Chapter 24. Assignment Operators
    15. Chapter 25. Templates
    16. Chapter 26. Exception Tactics
    17. Chapter 27. Types and RTTI
    18. Chapter 28. Containers
  8. Part IV. Topics
    1. Chapter 29. Mixing Overloading with Inheritance
    2. Chapter 30. The Big Three
    3. Chapter 31. Using Objects to Prevent Memory Leaks
    4. Chapter 32. Wild Pointers and Other Devilish Errors
    5. Chapter 33. High-Performance Software
    6. Chapter 34. COM and ActiveX
    7. Chapter 35. Transitioning to CORBA
    8. Chapter 36. C Language Considerations
    9. Chapter 37. Private and Protected Inheritance
    10. Chapter 38. Pointers to Member Functions
    11. Chapter 39. The Transition to OO and C++
  9. Index

Product information

  • Title: C++ FAQs, Second Edition
  • Author(s): Marshall Cline, Greg Lomow, Mike Girou
  • Release date: December 1998
  • Publisher(s): Addison-Wesley Professional
  • ISBN: 9780201309836