Table of Contents
1. Computers: Revolutionary Machines With A Simple Design. Computer Components.
Computer Storage.
Object-Oriented Programming.
Computing for Engineers and Scientists.
2. Basic Elements of A C++ Program. Simple C++ Program.
Statement Execution.
Input/Output Operations.
Data Types Arithmetic Expressions.
Additional Operators.
Interactive and Batch Processing.
Software Designer Beware.
3. Control Structures. Three Essential Structures.
Conditions.
Selection and Repetition.
Nested and Multiple-Alternative Selection Structures.
The switch Statement for Multiple Alternatives.
Software Designer Beware.
4. Repitition Structures. Loop Form and the while Statement.
The for Statement.
Operators That Change Their Operands.
Input Errors.
The do-while Loop.
Problem Solving with Loops.
Case Study: A Calling Modem.
Software Designer Beware.
5. User-Defined Functions. Single-Result Functions.
Void Functions.
Functions with Output Parameters.
Introductions to Scope of Names.
Recursive Functions.
Problem Solving with User-Defined Functions.
Case Study: Collecting Area for Solar-Heated House.
Software Designer Beware.
6. Classes of Objects. Analysis and Design of Classes.
Implementation of Classes.
Accessors and Constructor Functions for Type Conversion.
Class Reuse.
Software Designer Beware.
7. Arrays and Strings. Arrays for List Storage.
Sequential Access of Array Elements.
Using Whole Arrays as Parameters.
Using Character Arrays as Strings.
Classes with Array Components Software Designer Beware.
8. Multidimensional Arrays. Creating and Using Multidimensional Arrays.
Matrix Operations.
Overloading Operators for Matrix Operations.
Software Designer Beware.
9. Input and Output Streams. Text Files.
Stream Error Detection.
Formatting Text Output.
Software Designer Beware.
10. Introduction to Numerical Methods. Finding Roots of Functions.
Fundamental Statistics.
Numerical Differentiation.
Numerical Integration.
Solving First-Order Differential Equations.
Software Designer Beware.
11. Appendices. Character Sets.
C++ Standard Run-time Functions/Macros.
Operators.
Keywords.
Answers to Odd-Numbered Review Questions.