CPS 6, Ramm - Spring 2000 - 3/27/00 #26
R e v i e w
- Last Quiz
- Chapt 6. Classes, Iterators, and Patterns
- Reference Parameters
- Write Swap
- How Do We "return" More Than One Value?
- Reference Parameters vs Value Parameters
- Const Reference Parameters
- Stream Iteration: Counting Words
- Input File Streams
- UNIX File Streams
stdin, stdout
- Redirection
- Pipes
- Extrema, Statistics
- Type Casting (coercion)
- Text Processing Example Using Reference Parameters)
- More Reference Parameters (tricky)
- Chap 7. Class Interfaces, Design, and Implementation
- Switch Statement
- Work on Class Design: The Quiz Class
- Class Design: Assigning Responsibilities
- Implementing and Using Classes
- Other Practical Issues (handling various types)
- Question Class
- Initializer Lists - Syntax
- Quiz Program
- Preprocessor
- Compiler
- Linker
- Alternate Question Class (State Capitals)
- Random Walks (1-D)
- Random Walk Class
- Passing a Class by Value/Reference
- Structs
- Chap 8. Arrays, Data, & Random Access
- Access Concepts
- Random Access
- Sequential Access
- Arrays, Vectors
- A Counting Problem
- Vector Vocabulary
- Vector Creation and Use
- Vector Definition Syntax
- Vector Initialization
- Character Frequencies in Classical Cryptography
- Vector Parameters
- Word in Context Program
- What if File is Too Large?
- How to Solve Problem Without Vectors?
- Translating Characters to Morse Code (char to string)
- "The Partially Filled Array" Size and Capacity
- Using push_back
- A Simple Information Storage/Retrieval System
- Improving the Storage/Retrieval System
- Keeping track of Use: A Vector of Structs
- WordList Class
- Binary Search
- Keeping a Sorted List
- Modify WordList Class
- Deletion
- Arrays (built-in)
- Chap 9. Strings, Streams, and Operators
- Strings are Vectors of Characters
- Reverse Order of Characters in a String
- Convert Characters to Strings
- String Streams
- Daily Sales Ticket Processing
- Chap 10. Recursion, Lists, & Matrices
- Recursion: Everyday Life
- Recursion in Computing
- Integer to English by Recursion
- Integer to any Base by Recursion
- Towers of Hanoi
- Real Life Applications
- Recursion vs Iteration
- What's Going on With the Fibonacci Recursion?
- Problems for In Class Consideration
- Scope vs Lifetime
- Lifetime