|
| |
Title: Class User Programming
The most important aspect of this course is the focus on the standard library
and specifically the standard containers (formerly referred to as STL or
Standard Template Library). In these chapters students will receive a working
understanding of how to create programs using this powerful library.
Subsequent chapters focus on using this knowledge to
 | Implement object-oriented designs and |
 | Build new classes without the traditional tedium of constructors,
destructors and assignment operators. |
Who should attend?
Students who have attended the Type Safe C using C++
for Beginning Programmers.
Duration: 2 days
Two versions
C++ programmers already comfortable with constructors, destructors and
assignment operators should consider Class
User Programming with the C++ Standard Library for Experienced Programmers.
Topics
 | Class User Programming and the Standard Library
 | Types and user-defined types |
 | Class user programming with templates |
 | The standard library
 | Name spaces |
 | Class user programming with templates |
 | Basic containers & iterators |
 | Stacks, strings, vectors, maps & sets |
 | Special iterators for I/O |
|
 | Examples of reusing software components
 | Calculator — stack type |
 | Text justification — string type |
 | Employee Security & Spell Checking — set type |
 | Count unique words — map type |
 | Sorting a list of words — map type |
|
|
 | C++ Support for Object-Oriented Design
 | Introduction
 | Value semantics |
 | The middle ground between class user and class provider |
|
 | Class synthesis using built-in data types
 | Parameterization |
|
 | C++ support for OOAD (Object-Oriented Analysis and Design)
 | Multiplicity |
 | Aggregation and class synthesis |
 | Inheritance, mix-ins and class synthesis |
 | Collaboration |
 | Delegation |
|
|
 | Using Classes to Build New Classes
 | Reinventing basic containers
 | Arrays |
 | Multiply dimensioned arrays |
 | Strings |
|
 | Subscripting
 | Lvalues and Rvalues |
 | Returning references |
 | Constant arguments |
|
 | Defining I/O for containers |
 | Members, Friends & C-Style Function |
|
|