CSC 2000 Introduction to C++ by ChanJin Chung

Lecture Notes


Prelude
Chap. 1 / What's the Problem
Chap. 1 / Concepts of OOP
Chap. 2 / How to compile a .cpp program using Borland C++ 5.0
Chap. 3_1 / The Fisrt C++ Program
Chap. 3_2 / Integer Variables
Chap. 3_3 / Character Variables
Chap. 3_4 / More Basic Features | circarea.cpp
Chap. 3_5 / Basic C++ Variable Types
The First OO Program in C++
Chap. 3_6 / Arithmetic Operators
Chap. 3_7 / Library Functions, Compile, Link
Chap. 4_1 / Relational Operators and the For Loop
Chap. 4_2 / For Loop Variations
Chap. 4_3 / The "while" Loop
The Second OO Program in C++, C->F and F->C
C->F and F->C using While
Chap. 4_4 / The "if" statement
Chap. 4_5 / The "if...else" statement
Answer for the 1st labtest. Also, a member function defined outside the class
Chap. 4_6 / The "if...else if..." statement
Chap. 4_7 / The "switch case" statement
Chap. 3_5 / Basic Variable Types, Conversion, Casts
Chap. 5_1 / Structures | a program using struct
Chap. 6_0 / Functions: Call by Value, Call by Ref, and Call by Address
Chap. 6_1 / Functions, Call by Value (structure) | a program with functions using call by value
Chap. 6_2 / Functions, Call by Reference | a program using call by reference
an example program using call by address
Chap. 7_1 / Objects and Class | an OOP program
Chap. 7_2 / Returning Objects From Functions | an OOP program with a function returning an object
Chap. 7_3 / Constructors
Chap. 8_1 / Array Fundamentals
Chap. 8_2 / Passing Arrays to Functions | passaray.cpp
Chap. 8_2_1 / Passing Arrays to Functions (II)
Chap. 8_3 / Arrays of structures | structar.cpp
Chap. 8_4 / Arrays of Class Member Data | stakaray.cpp
Chap. 8_5 / Arrays of Objects | englaray.cpp
Chap. 9_1 / Overloading Binary Operator | englplus.cpp
Chap. 9_2 / Overloading Comparison Operators | engequal.cpp
Chap. 10_1 / Introduction to Inheritance, Class Hierarchy | employ.cpp
Chap. 10_2 / Introduction to Inheritance, Overriding Member Functions | staken.cpp
Chap. 14_1 Formatted File I/O | formato.cpp | formati.cpp
Chap. 10_3 / Public and Private Inheritance | classes.cpp
Chap. 10_4 / Multiple Inheritance | empmult2.cpp
Chap. 10_5 / Derived Class Construtor
Chap. 16_1 Function Template | tempabs2.cpp
Chap. 16_2 Class Templates | tempstak.cpp
Chap. 16_3 Class Templates II | temstak2.cpp
Chap. 12_1 / Intro. to Addresses & Pointer
Chap. 12_2 / Pointers and Functions | passref.cpp | passptr.cpp
Chap. 12_3 / Pointers and Functions, Passing Arrays | passarr.cpp
Chap. 12_4 / "new" operator and an array of pointers to objects | ptrobjs.cpp
Chap. 12_5 / Memory Management using new and delete
Chap. 13_3 Friend Functions | frd.cpp
Chap. 16_4 Exceptions | xstak2.cpp
Chap. 17_1 BC++ Class Library | stackint.cpp
Chap. 13_2 Virtual Functions| notvirt.cpp | virt.cpp
Chap. 9_xtra / String, strcnv2.cpp
Chap. 13_1 / Static Member Data and Static Functions | statfunc.cpp
Ch14. How to write an object into a file on a disk: writeobj.cpp
Ch14. How to read an object from a file on a disk: readobj.cpp
Ch14. How to manage a file with objects: rwobj.cpp
How to compile C++ using Borland C++ 5.0(project)