|
課程摘要 |
第一週 (2/23) |
- 課程簡介
(b&w),
課程大綱, 參考書籍, 線上資料
- 以 C++ 製作物件導向程式的核心概念:(物件, 抽象化界面, 封裝), 繼承,
多型
- Abstract
Data Type: (b&w):
[Data Type + Operation] common part independent of all implementations
- Homeworks:
|
第二週 (3/2) |
- C++
Console I/O (b&w):
an object oriented I/O library
- Homeworks:
|
第三週 (3/9) |
-
A
"Better" C Program (b&w),
codes
- Making and Using Objects
(b&w)
-
Objects and Classes
(b&w)
- Homeworks:
|
第四週 (3/16) |
-
Objects and Classes
(b&w)
(cont'd)
- 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
- Homeworks:
|
第五週 (3/23) |
- C++ as a better C
(b&w)
: (cont'd)
- new and delete
- stricter typing system
- typedef
-
reference
(b&w)
- global scope resolution operator
- bool
- explicit type conversion
- Procedural Programming Example 6Balls
-
Object Oriented Programming Example
3Bags Example
(b&w),
codes
- Homeworks:
- review Chapter 4, 5
- read Chapter 6 Initialization & cleanup
- Assertion
(b&w)
error is strictly for programmer instead of users
|
第六週 (3/30) |
-
Complex C/C++ Type Definitions
(b&w)
-
Constructors and Destructors
(b&w)
-
More Classes
(b&w)
(Object composition and ctor, this pointer, return pointers)
- Homeworks:
|
第七週 (4/6) |
- More Classes
(b&w)
(Object composition and ctor, this pointer, return pointers)
-
Common C/C++ Memory Errors
(b&w),
html
version
- Reference
(b&w)
- Homeworks:
|
第八週 (4/13) |
Review:
- Abstract
Data Type: (b&w):
[Data Type + Operation] common part independent of all implementations
- Objects and Classes
(b&w)
|
第九週 (4/20) |
Review:
- Procedural Programming Example 6Balls
-
Object Oriented Programming Example
3Bags Example
(b&w),
codes
|
第十週 (4/27) |
-
The Big Three: Dtor, Copy Ctor, and Assignment Operator
(b&w)
- Constructors and Destructors
(b&w)
- Homeworks:
|
第十一週 (5/4) |
期中考 (9:30-12:00),
期中考參考解答
|
第十二週 (5/11) |
- 期中考講解
-
Friend Classes and Friend Functions
(b&w)
- Homeworks:
|
第十三週 (5/18) |
- Basic Object Design
(b&w)
-
Operator Overloading
(b&w)
-
Inheritance
(b&w)
- Homeworks:
|
第十四週 (5/25) |
-
Inheritance
(b&w)
-
Advanced Inheritance
(b&w)
- Polymorphism
(b&w)
- Homeworks:
|
第十五週 (6/1) |
- Polymorphism (cont'd)
(b&w)
- Homeworks:
- review Chapter 14 (page 604-623)
- 負面思考: OOP 真的有好處嗎? 1,
2, 3
|
第十六週 (6/8) |
- Exception
(b&w)
- Homeworks:
- review Chapter 16
- review Vol2, Chapter 1
|
第十七週 (6/15) |
- Exception
(b&w)
- Template
(b&w)
- Advanced Inheritance (cont'd)
(b&w)
- UML 語法介紹,
(b&w)
參考資料,
UML 簡介
- Homeworks:
|
第十八週 (6/22) |
期末考 (9:30-12:10)
教室分配表
請提早 10 分鐘到 INS105 找你的座位
參考答案
查詢自己的期末考考卷與成績 (請至作業欄選取期末考)
|