Week 9

Home Windows C++ 241 C++ 242 Contact Info Contents

Week 9 - March 4

Back Up Next

Due Today

Program #7

Preparation for Class

No reading was announced in the last class. I will be presenting some topics and giving you references in the text to follow up as I go.
We will review the assignment and then leave behind the presentation of inheritance, virtual functions and polymorphism. Bring your questions.

Topics Covered in this Class

Stream I/O Overview
Stream Insertion and Extraction Operators
Use of functions
Use of manipulators
Control of formatting
Errors
Tying streams together
Introduction to Templates
Generic Programming and templates
Function templates
Class Templates
Exception Handling
Ways of handling errors in a program
How exceptions work
Divide by zero example
Exception throwing, catching and rethrowing
Stack Unwinding
Problems in constructors and destructors
Out of memory example
The auto_ptr class
Standard exeptions
File Processing
Files and Streams
Sequential Access
Random Access
Objects in files
String Processing and the string Class
Review of the C string format
Review of standard string-processing functions
The string class definition
Things to do with strings
Assignment
Concatenation
Substrings
Swapping
Finding things
Replacing things
Inserting things
Conversion
Iterators
String stream processing

Assignments

Program #8
 

Back Up Next 

Home Windows C++ 241 C++ 242 Contact Info Contents

Copyright © 2000  Charlie Poole. All rights reserved.
Revised: July 15, 2002 - cpoole@ctc.edu