972 (98/02-98/06) 課程內容摘要

  課程摘要
第一週 (2/17)
  1. 課程簡介 (b&w), 課程大綱, 參考書籍, 線上資料

  2. 以 C++ 製作物件導向程式的核心概念:(物件, 抽象化界面, 封裝), 繼承, 多型



  3. Abstract Data Type: (b&w): [Data Type + Operation] common part independent of all implementations

  4. C++ Console I/O (b&w): an object oriented I/O library

  5. Homeworks:
第二週 (2/24)  
  1. More C++ Console I/O (b&w): an object oriented I/O library

  2. A "Better" C Program (b&w), codes

  3. Quiz #1

  4. Homeworks:
第三週 (3/3)
  1. Assignment #1 due, 繳交書面報告

  2. 解釋 Quiz #1 (ADT, pointer)

  3. C++ File I/O (b&w)

  4. Making and Using Objects (b&w)

  5. Objects and Classes (b&w, 課程記錄, 請安裝課程記錄瀏覽程式DInk, 1, 教材記錄)

  6. Homeworks:
第四週 (3/10)
  1. C++ as a better C (b&w, 教材記錄1, 課程記錄2, 教材記錄2) :
    • 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

Homeworks:

第五週 (3/17)
  1. Assignment #2 due

  2. C++ as a better C
    • #define vs. const variables
    • new and delete
    • stricter typing system
    • typedef
    • reference (b&w)
    • global scope resolution operator
    • bool
    • explicit type conversion

  3. Procedural Programming Example 6Balls

  4. Object Oriented Programming Example 3Bags Example (b&w), codes

  5. Homeworks:
第六週 (3/24)
  1. Complex C/C++ Type Definitions (b&w)

  2. Constructors and Destructors (b&w, 課程記錄, 教材記錄)

  3. More Classes (b&w, 課程記錄, 教材記錄) (Object composition and ctor, this pointer, return pointers)

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

  5. Homeworks:
第七週 (3/31)

 

  1. Common C/C++ Memory Errors (b&w, 課程記錄, 教材記錄, 課程記錄, 教材記錄), html version

  2. Disciplined C++ Programming Style (b&w)

  3. The Big Three: Dtor, Copy Ctor, and Assignment Operator (b&w, 課程記錄, 教材記錄, 課程記錄 2, 教材記錄 2))

  4. Homeworks:
第八週 (4/7)

     

  1. Chapter 1: Formal Introduction to OOP (b&w, 課程記錄, 教材記錄))

  2. Friend Classes and Friend Functions (b&w, 課程記錄, 教材記錄),

  3. 前年度期中考解答

  4. Homeworks:
    • read Chapter 9 inline function
    • read Chapter 5 page 263
第九週 (4/14)

     

    期中考 (10:00-12:00), 期中考參考解答

第十週 (4/21)
  1. 期中考講解

  2. Basic Object Design (b&w, 課程記錄, 教材記錄)

  3. Homeworks:
第十一週 (4/28)
  1. Quiz #2

  2. Basic Object Design (cont'd)

  3. Operator Overloading (b&w, 課程記錄I, 課程記錄II, , 教材記錄I, 教材記錄II)

  4. Homeworks:
    • review Chapter 12 operator overloading
第十二週 (5/5)
  1. Quiz#3

  2. Inheritance (b&w, 課程記錄, 教材記錄)

  3. Inheritance (b&w, 課程記錄, 教材記錄)

  4. Homeworks:
第十三週 (5/12)
  1. Quiz#4

  2. Polymorphism (b&w, 課程記錄, 教材記錄)

  3. Homeworks:
    • review Chapter 14 (page 604-623)
    • 負面思考: OOP 真的有好處嗎? 1, 2, 3
第十四週 (5/19)
  1. Polymorphism (cont'd) (b&w, 課程記錄, 教材記錄)

  2. Homeworks:
    • review Chapter 16
    • review Vol2, Chapter 1
第十五週 (5/26) 請假
第十六週 (6/2)
  1. Proper Inheritance (Liskov Substitution Principle)

  2. Advanced Inheritance (b&w, 課程記錄, 教材記錄)

  3. Template (b&w, 教材記錄)

  4. Template (cont'd) (b&w, 課程記錄, 教材記錄)

  5. Homeworks:
第十七週 (6/9)
  1. Exception (b&w, 課程記錄, 教材記錄)

  2. Advanced Inheritance (cont'd) (b&w, 課程記錄, 教材記錄)

  3. State Diagram (b&w, 課程記錄, 教材記錄)

  4. 前年度期末考試題 (課程記錄, 教材記錄)

  5. 去年度期末考試題及解答
第十八週 (6/16)
    期末考 (10:00-12:00)
    教室分配表
    請提早 10 分鐘到 INS 105 找你的座位


C++ 程式設計課程 首頁

製作日期: 02/11/2009 by 丁培毅 (Pei-yih Ting)
E-mail: [email protected] TEL: 02 24622192x6615
海洋大學 電機資訊學院 資訊工程系 Lagoon

/squall.cs.ntou.edu.tw/>Lagoon

eight=100> ://www.cs.ntou.edu.tw/>資訊工程系 Lagoon