Taught Winter 2003
Oakland University, Michigan, USA
Description
We introduce this course by covering computing and the object-oriented design methodology. Both data structure and programming design will be emphasized. We will describe how a C++ program should be organized, commented and we extract the fundamental C++ object that are involved in the program. Control constructs including Boolean algebra, Boolean type, ifstatement, switch statement, while statement, simple string and character processing will be explained. We will tackle the function usage basics and libraries such as preprocessor, software libraries, iostream library, fstreamlibrary, and iomanip library. The class construct and object-oriented design that introduces programmer-defined data type, RectangleShape class, constructors will be covered as well. We will finally explore the concept of pointers and dynamic memory (constant pointers, arrays and pointers, character string processing) and the inheritance concept. This latter topic includes object-oriented design using inheritance, reuse via inheritance, and protected members.
Textbook
J. P. Cohoon and J. W. Davidson, C++ Program Design, Third Edition, Mc-Graw Hill, 2002
Course Materials
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 4 (part 2)
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 9 (part 2)
Chapter 11