Chapter 6
Program Organization and Modules


6.0 Chapter Goals
6.1 What Did You Say a Module is?
6.2 Libraries--How to Borrow a Module and Sign itOut
6.3 The Standard Library (1)--I/O
     6.3.1 ISO Standard I/O Modules
     6.3.2 Classical I/O--The InOut Family
     6.3.3 Alternate Origins and Destinations
     6.3.4 Redirection
     6.3.5 Writing Special Characters To a Terminal
6.4 The Standard Library (2)--Mathematical Functions
     6.4.1 Square Root
     6.4.2 Exponential and Logarithmic Functions
     6.4.3 Trigonometric Functions
     6.4.4 Conversions
     6.4.5 Summary of RealMath
     6.4.6 Other Mathematical functions
6.5 Starting Your Own Libraries
     6.5.1 Modules and User-Defined Data Types
6.6 Handling Errors in Library Modules
6.7 Modules and Design Considerations
6.8 Libraries--an Overview
6.9 An Extended Example (Coordinate Geometry)
6.10 Chapter Summary
6.11 Assignments
     Second Interregnum--Nellie and the Pirates
Contents