Data Abstraction and Structures Using C++Headington and Riley Chapter 2Modules 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
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
Pseudorandom number generators
Lehmer generating function rule
Full Period Generating Function
ctype module interface diagram
Recall that . . .
These are equivalent
string module interface diagram
Email: ssorkin@essex.cc.md.us
Home Page: http://www.essex.cc.md.us/Essex/People/ssorkin/index.html
Download presentation source