|
課程摘要 |
第一週 (2/27) |
|
第二週 (3/6) |
- 課程簡介,
課程大綱, 參考書籍, 線上資料
- 以 C++ 製作物件導向程式的核心概念:(物件, 抽象化界面, 封裝), 繼承,
多型
- Homeworks:
|
第三週 (3/13) |
- C++
Console I/O
- Making
and Using Objects
- Homeworks:
|
第四週 (3/20) |
- Objects
and Classes
- 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())
- Homeworks:
|
第五週 (3/27) |
- C++
as a better C: (cont'd)
- 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
- stricter typing system
- typedef
- reference
- global scope resolution operator
- bool
- explicit type conversion
- Assertion error is strictly for programmer
instead of users
- Homeworks:
|
第六週 (4/3) |
- Complex C/C++ Type Definitions
- Procedural Programming Example 6Balls
- Object Oriented Programming Example 3Bags
- Constructors
and Destructors
- Homeworks:
- review Chapter 4, 5
- read Chapter 6 Initialization & cleanup
|
第七週 (4/10) |
- Constructors
and Destructors (cont'd)
- Assignment #1 due
- 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/17) |
- Assignment #1 Discussions
- Disciplined
C++ Programming Style
- 去年度期中考解答
- Chapter
1: Formal Introduction to OOP
- The Big Three: Dtor, Copy
Ctor, and Assignement Operator
- Homeworks:
|
第九週 (4/24) |
期中考 (10:00-12:00), 期中考參考解答
|
第十週 (5/1) |
- Friend Classes and Friend Functions
- 期中考講解
- Homeworks:
- read Chapter 9 inline function
- read Chapter 5 page 263
- 三星期後 5/22 繳交 作業二
|
第十一週 (5/8) |
- Basic Object Design
- Operator Overloading
- Homeworks:
- read Chapter 12 operator overloading
|
第十二週 (5/15) |
- Inheritance
- Proper Inheritance
- Homeworks:
|
第十三週 (5/22) |
- Polymorphism
- UML 語法介紹, 參考資料
- Homeworks:
- review Chapter 15
- 三星期後 6/12 繳交 作業三
|
第十四週 (5/29) |
- Advanced Inheritance
- Homeworks:
- review Chapter 14 (page 604-623)
- 負面思考: OOP 真的有好處嗎? 1,
2, 3
|
第十五週 (6/5) |
- Template
- Exception
- Homeworks:
- review Chapter 16
- review Vol2, Chapter 1
|
第十六週 (6/12) |
- Exception (cont'd)
- State Diagram
- 去年度期末考試題
- Homeworks:
|
第十七週 (6/19) |
端午節
|
第十八週 (6/26) |
期末考 (10:00-12:00)
|