Other C++ Features

3/5/99


Click here to start


Table of Contents

Other C++ Features

Outline

True Reference Parameters

A Simple True Reference Parameter

Reference to a Pointer

Reference to a Structure

Default Parameter Values

Specifying Default Values

Default Example

Can Use Objects as Defaults

Using Expressions as Defaults

Dynamic Memory Allocation

Allocating a Single Element

Initializing the Resulting Space

Deleting an Instance

Allocating a 1-Dimensional Array

Releasing 1D Array

Allocating Space for String

Allocating 2-Dimensional Array

2D Array Example

Example: Array of Strings

Example: Array of Strings

Example: Array of Strings

Author: Richard Maclin

Email: rmaclin@d.umn.edu

Home Page: http://www.d.umn.edu/~rmaclin/

Download presentation source