|
課程摘要 |
第一週 (2/18) |
- 課程簡介,
課程大綱, 參考書籍, 線上資料
- 以 C++ 製作物件導向程式的核心概念: 物件, 抽象化界面,
封裝, 繼承,
多型
- 學習目標和 C 程式設計, 資料結構, 演算法有一些差異: 希望能夠增進軟體系統的重用,
不要像免洗餐具一樣即用即丟, 希望能夠不斷地透過物件的組合來產生新的軟體: 解線性方程式範例
(b&w)
- Simple C programming quiz
- A
"Better" C Program (b&w),
codes
- Homeworks:
|
第二週 (2/25) |
- Abstract
Data Type: (b&w):
[Data Type + Operation] common part independent of
all implementations
-
C++ Console I/O (b&w):
an object oriented I/O library
- Homeworks:
|
第三週 (3/4) |
- Making
and Using Objects (b&w)
- Objects
and Classes (b&w)
- Homeworks:
|
第四週 (3/11) |
- Objects
and Classes (b&w)
- C++
as a better C (b&w)
:
- single line comment
- struct, enum, union tags are type names
- new iostream library (object oriented
usage, type sensitive usage)
- cooperating with stdio (ios::sync_with_stdio())
- variable declaration on the fly
- definition vs. declaration (variable
and function)
- function signature and name mangling
- parameter defaults
- #define vs. const variables
- new and delete
- Homeworks:
|
第五週 (3/18) |
- C++
as a better C (b&w)
: (cont'd)
- stricter typing system
- typedef
- reference
(b&w)
- global scope resolution operator
- bool
- explicit type conversion
- Reference
(b&w)
-
Complex C/C++ Type Definitions (b&w)
- Dynamic
allocation of 2-dimensional array in C (b&w)
- Procedural Programming Example 6Balls
- Object Oriented Programming Example
3Bags Example
(b&w),
codes
- Homeworks:
- review Chapter
3
- read Chapter 4, 5
- 兩星期後 (4/3 星期四 21:00) 交
作業三
|
第六週 (3/25) |
- Object Oriented Programming Example 3Bags
Example (b&w)
(cont'd)
- Constructors
and Destructors (b&w)
- Homeworks:
- Example program wiritten in C++ but not
OOP: WaveRecord.h,
WaveRecord.cpp
- review Chapter 4, 5
- read Chapter 6 Initialization & cleanup
- Assertion
(b&w)
error is strictly for programmers instead of users
|
第七週 (4/1) |
- More
Classes (b&w)
(Object composition and ctor, this pointer, return pointers)
- Common
C/C++ Memory Errors (b&w),
html version
- Homeworks:
|
第八週 (4/8) |
- Common
C/C++ Memory Errors (cont'd) (b&w),
html version
- The
Big Three: Dtor, Copy Ctor, and Assignment Operator (b&w)
- Homeworks:
|
第九週 (4/15) |
期中考 (10:00-12:00), 期中考參考解答
下星期 (4/24 星期四 21:00) 交
作業三
|
第十週 (4/22) |
- 期中考講解
-
Chapter 1: Introduction to OOP (b&w)
-
Friend Classes and Friend Functions (b&w)
- Homeworks:
|
第十一週 (4/29) |
- Basic
Object Design (b&w)
- More
Object Design (b&w)
- Homeworks:
|
第十二週 (5/6) |
- More
Object Design (b&w)
(cont'd)
-
Operator Overloading (b&w)
- Homeworks:
- read Chapter 12 operator overloading
- 三星期後 (5/29 星期四 21:00) 交
作業四
|
第十三週 (5/13) |
- Operator
Overloading (b&w)
(cont'd)
- Inheritance
(b&w)
- Homeworks:
|
第十四週 (5/20) |
- Inheritance
(b&w)
- Homeworks:
|
第十五週 (5/27) |
- Advanced
Inheritance (b&w)
- Polymorphism
(b&w)
- Homeworks:
- review Chapter 14
- review Chapter 15
- 後天 (5/29 星期四 21:00) 交
作業四
|
第十六週 (6/3) |
- Generic
Programming (b&w)
- Homeworks:
|
第十七週 (6/10) |
- Exception
(b&w)
- Object
Oriented Design Smells and SOLID Principles (b&w)
- Homeworks:
|
第十八週 (6/17) |
期末考 (9:30-12:00)
教室分配表
請提早 10 分鐘到 INS105 / INS B18 找你的座位
查詢自己的期末考考卷與成績
(請至作業欄選取期末考)
|