|
課程摘要 |
第一週 (2/22) |
- 課程簡介, 課程大綱,
參考書籍, 線上資料
- 以 C++ 製作物件導向程式的核心概念:(物件, 抽象化界面, 封裝), 繼承, 多型
- C 語法複習
- Homeworks:
|
第二週 (3/1) |
- C++ Console I/O
- Making
and Using Objects
- Homeworks:
|
第三週 (3/08) |
- C++ as a better C:
- 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
- Assignment #1 Discussions
- Homeworks:
|
第四週 (3/15) |
- C 指標 (pointer) 語法複習
- C++ as a better C: (cont'd)
- stricter typing system
- typedef
- reference
- global scope resolution operator
- bool
- explicit type conversion
- Objects and Classes
- Assertion is strictly for programmer instead of users
- Homeworks:
|
第五週 (3/22) |
- Procedural Programming Example 6Balls
- Object Oriented Programming Example 3Bags
- Constructors and Destructors
- Homeworks:
- review Chapter 4, 5
- read Chapter 6 Initialization & cleanup
|
第六週 (3/29) |
- Assignment #2 due
- Disciplined
C++ Programming Style
- More Classes (Object
composition and ctor, this pointer, return pointers)
- Procedural Programming Example WaveRecord.h,
WaveRecord.cpp
- Common C/C++ Memory
Errors, html version
- Homeworks:
|
第七週 (4/5) |
Spring Break |
第八週 (4/12) |
- 去年度期中考討論
- Chapter
1: Formal Introduction to OOP
- The Big Three: Dtor, Copy
Ctor, and Assignement Operator
- Homeworks:
|
第九週 (4/19) |
- 期中考 (13:10-15:30), 考試座位表,
期中考參考解答
- Homeworks:
|
第十週 (4/26) |
-
- Friend Classes and Friend Functions
- Basic Object Design
- Homeworks:
|
第十一週 (5/3) |
- Basic Object Design
(cont'd)
- Operator Overloading
- Homeworks:
- read Chapter 12 operator overloading
- 兩星期後 5/17 繳交 作業四
|
第十二週 (5/10) |
- 期中考講解
- Inheritance
- Proper Inheritance
- Homeworks:
|
第十三週 (5/17) |
- Polymorphism
- UML 語法介紹, 參考資料
- Homeworks:
- review Chapter 15
- 6/14 繳交 作業五
|
第十四週 (5/24) |
- Advanced Inheritance
- Template
- Homeworks:
- review Chapter 14 (page 604-623)
- review Chapter 16
- 負面思考: OOP 真的有好處嗎? 1,
2, 3
|
第十五週 (5/31) |
- Exception
- Homeworks:
|
第十六週 (6/07) |
|
第十七週 (6/14) |
|
第十八週 (6/21) |
期末考 (13:10-15:00)
|