Data Abstraction and Structures Using C++ Headington and Riley Chapter 2 Modules and Information Hiding

2/24/99


Click here to start


Table of Contents

Data Abstraction and Structures Using C++ Headington and Riley Chapter 2 Modules and Information Hiding

A Module

Using C++ Modules

Program with several modules

Object files are linked to form one executable file

Advantages of Separate Compilation of Modules

Modules use 2 separate files

PPT Slide

PPT Slide

Specification file ( .h) purpose

Specification file ( .h) contains

Implementation ( .cpp) file

Module interface diagram lists exported items

Avoiding Multiple Inclusion of Header Files

Using Preprocessor Directive #ifndef

Reserved word static

PPT Slide

Pseudorandom number generators

Lehmer generating function rule

PPT Slide

PPT Slide

Full Period Generating Function

PPT Slide

PPT Slide

ctype module interface diagram

PPT Slide

Recall that . . .

These are equivalent

string module interface diagram

PPT Slide

PPT Slide

Author: Sylvia Sorkin

Email: ssorkin@essex.cc.md.us

Home Page: http://www.essex.cc.md.us/Essex/People/ssorkin/index.html

Download presentation source