The C++ Programming Language

5/14/98


Click here to start


Table of Contents

The C++ Programming Language

Your Instructor

C++ Streams: A Quick Definition

C++ Streams: A Quick Example

printf and cout Together

Function Overloading

Function Overloading (cont’d)

Function Overloading (cont’d)

Default Arguments

Overloading vs. Default Args

The “Default Constructor”

Constructors with No Arguments

Constructors with Arguments

Constructors and Overloading

Overloaded Constructors

Another Constructor Example

Constructors with Default Args

Pointers to Classes

new and delete

Examples of new and delete

new and Constructors

Another Constructor Example

Operator Overloading

Operator Overloading

Operator Overloading

Operator Overloading

Operator Overloading

Example Program: Part 1

Example Program: Part 2

Example Program: Part 3

Example Program: Part 4

Example Program: Part 5

Data Abstraction: Another Example

Problems with the C Version

The C++ Version: Part 1

The C++ Version: Part 2

The C++ Version: Part 3

Homework

Program to use your stack class

Author: Jeremy Elson

Email: jeremy.elson@nih.gov

Home Page: http://cambot.dcrt.nih.gov/~jelson/560