Hardware vs. Software
Programming languages
Problem solving and software development
Algorithm design
Structure diagrams, flowcharts
Introduction to C++
Problem solving
Basic syntax
Comments, reserved words, case sensitivity The function main
Costant and variable declarations
Data Types
cout for output
Preprocessor directives
Formatting for output
Math library functions
cin for input Errors: compile-time vs run-time, syntax vs. logic
Selection structures
Logic expressions
Simple conditions
Relational operators
Hierarchy of operations extended
if, if-else
Files
File stream objects and modes
File stream methods
Embedded and interactive file names
Closing a file: close()
Readinf from and writing to files
Standard device files and other files
Compound statements: Instruction blockes, block scope
Nested if statements
Multiple alternative decisions
switch
More program testing
Pre-test vs post-testLooping
Fixed count vs variable-decision loops
While loops: Interactive, sentinels, break and continue statements, the null statement
for loops
Nested loops
do-while loops
Modularity usingFunctions
Function and argument declarations
Function prototypes Defining a function
Functions stubs
Functions with empty parameter list
Default arguments
Returning values
Inline functions
Variable scope
Scope resolution operator
Call by reference; passing by reference
Arrays
Array type declarations
Subscripts
Processing arrays- use of loops
Array initialization
Array as function arguments
Declaring and processing two-dimensional arrays
Larger dimensional arrays
Sequential search
Binary search (optional)
Leave me a message
To return to home base
Last updated 10/3/04
Chapter 11