C++ Programming Course from Imperial College
This is an intensive introductory Programming
Course Using C++, from William Knottenbelt at
Imperial College London. This C++ course provides great learning
lecture notes that you can use to learn how to program using the C++
language. They have been kept up to date by four different professors
over the years. If you are new to programming this course may be suited
for you since little previous programming experience is assumed. All
the example programs referenced in the lecture notes and all the
answers to the exercises have been written in ANSI standard C++, and
have been tested using the GNU g++ compiler.
Professor Knottenbelt also makes available a 40-slide Introduction
to C++ for Java and C programmers (10-pages, 3.1mb,
pdf format).
C++ Programming Course:
Lecture
1: Introducing C++
- 1.1 Some Remarks about Programming
- 1.2 The Origins of C++
- 1.3 ANSI C++
- 1.4 The C++ Programming Environment in Linux
- 1.5 An Example C++ Program
- 1.6 Very Simple Input, Output and Assignment
- 1.7 Simple Flow of Control
- 1.8 Preliminary Remarks about Program Style
- Exercises
Lecture 2: Variables, Types and Expressions
- 2.1 Identifiers
- 2.2 Data Types
- 2.3 Some Tips on Formatting Real Number Output
- 2.4 Declarations, Constants and Enumerations
- 2.5 Assignments and Expressions
- Exercises
Lecture 3: Functions and Procedural Abstraction
- 3.1 The Need for Sub-programs
- 3.2 User-defined Functions
- 3.3 Value and Reference Parameters
- 3.4 Polymorphism and Overloading
- 3.5 Procedural Abstraction and Good Programming Style
- 3.6 Splitting Programs into Different Files
- Exercises
Lecture 4: Files and Streams
- 4.1. Why Use Files?
- 4.2 Streams
- 4.3 Checking for Failure with File Commands
- 4.4 Character Input and Output
- 4.5 Checking for the End of an Input File
- 4.6 Streams as Arguments in Functions
- 4.7 Input and Output Using ">>" and "<<"
- Exercises
Lecture 5: Branch and Loop Statements
- 5.1 Boolean Values, Expressions and Functions
- 5.2 "For", "While" and "Do ... While" Loops
- 5.3 Multiple Selection and Switch Statements
- 5.4 Blocks and Scoping
- 5.5 A Remark about Nested Loop Statements
- Exercises
Lecture 6: Arrays and Strings
- 6.1 The Basic Idea and Notation
- 6.2 Arrays as Parameters in Functions
- 6.3 Sorting Arrays
- 6.4 Two-dimensional Arrays
- 6.5 Strings
- Exercises
Lecture 7: Pointers
- 7.1 Introducing Pointers
- 7.2 Array Variables and Pointer Arithmetic
- 7.3 Dynamic Arrays
- 7.4 Automatic and Dynamic Variables
- 7.5 Linked Lists
- Exercises
Lecture 8: Recursion
- 8.1 The Basic Idea
- 8.2 A Simple Example
- 8.3 The Mechanics of a Recursive Call
- 8.4 Three More Examples
- 8.5 Recursion and Iteration
- 8.6 Recursive Data Structures
- 8.7 Quick Sort - A Recursive Procedure for Sorting
- Exercises
Appendix 1 - Guide to emacs and g++
Appendix 2 - Debugging
- A.2.1 General Tips on Debugging
- The "assert" Function
- Stubs and Drivers
- Some Common Errors to Look Out For
- Debugging Very Bad Programs
- A.2.2 The GNU debugger gdb
Popularity: 8% [?]
Related Posts:
Tags for this post>> C++ Courses and Tutorials | programming





























