Mohamed Iqbal: C++ Notes: Table of Contents (Indebted to Fred Swartz)

Some of these supplemental notes are good, others only rough drafts or half-completed. Because they are designed only to provide additional examples, summaries, or explanations where the textbook is weak, they do not cover many obviously important topics. You can download a zipped version: notes-cpp-2004-12-19.zip [less than 400 KB]. -- Mohamed Iqbal

Getting Started

Summaries

Types and Expressions

Types

Expressions

Control Flow

Loops

Switch Statement

Functions

Exceptions

Input / Output

GUI

Arrays

One-dimensional Arrays

C-Strings - arrays of char

2-dimensional arrays

Battleship Example

Sorting Arrays

Searching Arrays

Misc Array Function Examples

Misc practical issues.

Multiple source files

Pointers, References, and Dynamic Allocation

Pointers and References

Pointers, arrays, and subscripts

Dynamic allocation (new, delete)

Structs

Examples

Object-Oriented Programming with Classes

Generic Programming

  • Templates
  • Template functions
    • Nothing yet

STL (Standard Template Library) containers, iterators, algorithms

General

Containers

Iterators

Examples

Misc Examples

Misc

Random numbers

Preprocessor

Big-Oh Notation

Other online sources

Acknowledgements and thanks to Mohamed Iqbal of MIT.