95 Spring 課程內容摘要

  課程摘要
第一週 (2/22)
  1. 課程簡介, 課程大綱, 參考書籍, 線上資料
  2. 以 C++ 製作物件導向程式的核心概念:(物件, 抽象化界面, 封裝), 繼承, 多型
  3. C 語法複習
  4. Homeworks:
第二週 (3/1)
  1. C++ Console I/O
  2. Making and Using Objects
  3. Homeworks:
第三週 (3/08)
  1. 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

  2. Assignment #1 Discussions

  3. Homeworks:
第四週 (3/15)
  1. C 指標 (pointer) 語法複習

  2. C++ as a better C: (cont'd)
    • stricter typing system
    • typedef
    • reference
    • global scope resolution operator
    • bool
    • explicit type conversion

  3. Objects and Classes

  4. Assertion is strictly for programmer instead of users

  5. Homeworks:
第五週 (3/22)
  1. Procedural Programming Example 6Balls

  2. Object Oriented Programming Example 3Bags

  3. Constructors and Destructors

  4. Homeworks:
    • review Chapter 4, 5
    • read Chapter 6 Initialization & cleanup
第六週 (3/29)
  1. Assignment #2 due

  2. Disciplined C++ Programming Style

  3. More Classes (Object composition and ctor, this pointer, return pointers)

  4. Procedural Programming Example WaveRecord.h, WaveRecord.cpp

  5. Common C/C++ Memory Errors, html version

  6. Homeworks:
    • read Appendix A, B
第七週 (4/5) Spring Break
第八週 (4/12)
  1. 去年度期中考討論

  2. Chapter 1: Formal Introduction to OOP

  3. The Big Three: Dtor, Copy Ctor, and Assignement Operator

  4. Homeworks:
第九週 (4/19)
  1. 期中考 (13:10-15:30), 考試座位表, 期中考參考解答

  2. Homeworks:
第十週 (4/26)

  1. Friend Classes and Friend Functions

  2. Basic Object Design

  3. Homeworks:
第十一週 (5/3)


  1. Basic Object Design (cont'd)

  2. Operator Overloading

  3. Homeworks:
    • read Chapter 12 operator overloading
    • 兩星期後 5/17 繳交 作業四
第十二週 (5/10)

  1. 期中考講解

  2. Inheritance

  3. Proper Inheritance

  4. Homeworks:
第十三週 (5/17)

  1. Polymorphism

  2. UML 語法介紹, 參考資料

  3. Homeworks:
第十四週 (5/24)

  1. Advanced Inheritance
  2. Template
  3. Homeworks:
    • review Chapter 14 (page 604-623)
    • review Chapter 16
    • 負面思考: OOP 真的有好處嗎? 1, 2, 3
第十五週 (5/31)

  1. Exception
  2. Homeworks:
    • review Vol2, Chapter 1

第十六週 (6/07)

第十七週 (6/14)

第十八週 (6/21)
    期末考 (13:10-15:00)

C++ 程式設計課程 首頁

製作日期: 02/21/2006 by 丁培毅 (Pei-yih Ting)
E-mail: pyting@cs.ntou.edu.tw TEL: 02 24622192x6615
海洋大學 電機資訊學院 資訊工程系 Lagoon

V>