C++ Syntax

Constructors
Destructors
Up Java Resources

A summary of C++ in PDF format

 

 

Pointers

A pointer is a reference to something, such as a primitive, object, array, or function.

Declaring a pointer:    [Type]* px;

Dereferencing a pointer to get the value it is pointing to:  *px;

Getting the address of an object:   px = &x;

Dereferencing a pointer to an object to get to a field or method: 

y = px->aField;   

z = px->aMethod();