C++ Pocket Reference: C++ Syntax and Fundamentals

Front Cover
"O'Reilly Media, Inc.", Aug 7, 2008 - Computers - 140 pages

C++ is a complex language with many subtle facets. This is especially true when it comes to object-oriented and template programming. The C++ Pocket Reference is a memory aid for C++ programmers, enabling them to quickly look up usage and syntax for unfamiliar and infrequently used aspects of the language. The book's small size makes it easy to carry about, ensuring that it will always be at-hand when needed. Programmers will also appreciate the book's brevity; as much information as possible has been crammed into its small pages.In the C++ Pocket Reference, you will find:

  • Information on C++ types and type conversions
  • Syntax for C++ statements and preprocessor directives
  • Help declaring and defining classes, and managing inheritance
  • Information on declarations, storage classes, arrays, pointers, strings, and expressions
  • Refreshers on key concepts of C++ such as namespaces and scope
  • More!
C++ Pocket Reference is useful to Java and C programmers making the transition to C++, or who find themselves occasionally programming in C++. The three languages are often confusingly similar. This book enables programmers familiar with C or Java to quickly come up to speed on how a particular construct or concept is implemented in C++.Together with its companion STL Pocket Reference, the C++ Pocket Reference forms one of the most concise, easily-carried, quick-references to the C++ language available.
 

What people are saying - Write a review

User Review - Flag as inappropriate

good

User Review - Flag as inappropriate

good best

Selected pages

Contents

Namespaces
67
using Declarations
68
Unnamed Namespaces
69
Declaring Objects
70
Declaring Data Members
71
Declaring Member Functions
75
Access Levels for Members
79
Friends
80

char and wchar_t
14
short int long
16
float double long double
17
Compound Types
18
Enumerations
19
Arrays
20
Strings
23
Pointers
25
Pointers to Members
27
References
28
Class Types
29
Type Definitions
32
Comments
33
Reserved Words
34
Literals
35
Expressions
47
Scope
48
Namespace Scope
49
Other Scopes
50
Declarations
51
Declaring Variables
52
Declaring Functions
53
Storage Classes
56
Qualifiers
58
Statements
60
Iteration Statements
61
Selection Statements
63
Jump Statements
65
Constructors
81
Destructors
84
Nested Declarations
86
Forward Declarations
87
Inheritance
89
Constructors and Inheritance
90
Destructors and Inheritance
91
Virtual Member Functions
92
Abstract Base Classes
95
Multiple Inheritance
96
Virtual Base Classes
98
Templates
99
Template Functions
102
Overloading
105
Overloading Operators
106
Memory Management
109
Memory Reclamation
111
Casts and Runtime Type Information
113
Runtime Type Information
116
Exception Handling
118
catch
119
Exception Specifications
120
The C++ Standard Library
121
The std Namespace
122
C++ Standard Header Files
123
Index
126
Copyright

Other editions - View all

Common terms and phrases

Popular passages

Page 14 - Escape character \f Form feed \n Newline \r Carriage return \t Horizontal tab \v Vertical tab \\ Backslash \nnn The character in the ASCII set corresponding to the octal number nnn.
Page 15 - Although the size of each type can vary, the compiler guarantees that the size of a short is less than or equal to the size of an int, and the size of an int is less than or equal to the size of a long.

Bibliographic information