Description
Book SynopsisThis title is a highly focused reference to the most vital and often-used syntax and language elements of C++ that are necessary for writing applications. It includes an introduction to C++, and covers topics including classes, data types and memory management.
Table of ContentsIntroduction Typographic Conventions Acknowledgments Compatibility with C Program Structure Startup Termination Header Files Source Files Preprocessor Directives Preprocessor Macros Fundamental Types bool char and wchar_t short, int, long float, double, long double Compound Types Enumerations Arrays Strings Pointers Pointers to Members References Class Types Type Conversions and Definitions Type Conversions Type Definitions Lexical Elements Comments Identifiers Reserved Words Literals Operators Expressions Scope Local Scope Class Scope Namespace Scope File Scope Other Scopes Enclosing Scopes Declarations Declaring Variables Declaring Functions Storage Classes Qualifiers Statements Expression Statements Null Statements Compound Statements Iteration Statements Selection Statements Jump Statements Namespaces using Declarations using Directives Unnamed Namespaces Classes, Structs, and Unions Declaring Objects Accessing Members Declaring Data Members Declaring Member Functions Access Levels for Members Friends Constructors Destructors Nested Declarations Forward Declarations Structs Unions Inheritance Constructors and Inheritance Destructors and Inheritance Virtual Member Functions Abstract Base Classes Access Levels for Inheritance Multiple Inheritance Virtual Base Classes Templates Template Classes Template Functions Overloading Overloading Functions Overloading Operators Memory Management Memory Allocation Memory Reclamation Casts and Runtime Type Information C-Style Casts Casts in C++ Runtime Type Information Exception Handling try throw catch Exception Specifications The C++ Standard Library The std Namespace C Standard Library Support C++ Standard Header Files I/O Streams