Table of Contents BackCover C/C++ Programmer's Reference, Third Edition Introduction Chapter 1: Data Types, Variables, and Constants Declaring Variables Identifiers Classes Inheritance S
Trang 1Table of Contents
BackCover
C/C++ Programmer's Reference, Third Edition
Introduction
Chapter 1: Data Types, Variables, and Constants
Declaring Variables
Identifiers
Classes
Inheritance
Structures
Unions
Enumerations
C Tags
The Storage Class Specifiers
Type Qualifiers
Arrays
Trang 2Defining New Type Names Using typedef Constants
Chapter 2: Functions, Scopes,
Namespaces, and Headers
Recursion
Function Overloading
Default Arguments
Prototypes
Understanding Scopes and Variable
Lifetimes
Namespaces
The main( ) Function
Function Arguments
Constructors and Destructors
Function Specifiers
Linkage Specification
The C and C++ Standard Libraries
Chapter 3: Operators
Relational and Logical Operators
Trang 3The Bitwise Operators
Pointer Operators
Assignment Operators
The ? Operator
Member Operators
sizeof
The Cast
The I/O Operators
The :: Scope Resolution Operator new and delete
typeid
Operator Overloading
Operator Precedence Summary Chapter 4: The Preprocessor and Comments
#define
#error
#if, #ifdef, #ifndef, #else, #elif, and
Trang 4#endif
#include
#line
#pragma
#undef
The # and ## Preprocessor Operators Predefined Macro Names
Comments
C99 Variable Argument Lists
Chapter 5: Keyword Summary
asm
auto
bool
_Bool
break
case
catch
char
class
Trang 5_Complex const
const_cast continue default
delete
do
double
dynamic_cast else
enum
explicit
export
extern
false
float
for
friend
goto
Trang 6wctomb( ), 201
wctrans( ), 204–205
wctrans_t type, 203
wctype( ), 204
<wctype.h> header, 34, 203 wctype_t type, 203
WEOF, 203
what( ), 244, 322
while loop, 94–95
width( ), 233, 260
WinMain( ), 26
wint_t type, 203
write( ), 233, 260
ws manipulator, 216, 241 wstreampos type, 242
wstring class, 309
Trang 7X
XOR (^) bitwise operator, 39, 40