1002 (101/02-101/06) 課程內容摘要

download all pdf slides 101/04/25

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

  2. 以 C++ 製作物件導向程式的核心概念:(物件, 抽象化界面, 封裝), 繼承, 多型
  3. Abstract Data Type: (b&w): [Data Type + Operation] common part independent of all implementations

  4. Homeworks:
第二週 (2/28)   no class
第三週 (3/6)
  1. C++ Console I/O (b&w): an object oriented I/O library

  2. Making and Using Objects (b&w)

  3. Homeworks:
第四週 (3/13)  
  1. Objects and Classes (b&w)

  2. 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
  3. Homeworks:
第五週 (3/20)
  1. 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

  2. Reference (b&w)

  3. Complex C/C++ Type Definitions (b&w)

  4. Homeworks:
第六週 (3/27)  
  1. Procedural Programming Example 6Balls

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

  3. Constructors and Destructors (b&w)

  4. Homeworks:
    • review Chapter 4, 5
    • read Chapter 6 Initialization & cleanup
    • Assertion (b&w) error is strictly for programmers instead of users
    • 作業二最後截止時間為 (4/2 (一) 24:00)
    • 兩星期後 (4/9 (一) 24:00) 交作業三
第七週 (4/3)
  1. More Classes (b&w) (Object composition and ctor, this pointer, return pointers)

  2. Common C/C++ Memory Errors (b&w), html version

  3. Homeworks:
第八週 (4/10)
  1. Chapter 1: Introduction to OOP (b&w)

  2. The Big Three: Dtor, Copy Ctor, and Assignment Operator (b&w)

  3. Homeworks:
第九週 (4/17)

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

第十週 (4/24)

  1. Object Oriented Programming Example readdressed (see page 16): the subsitutibility of objects in design and repairing 3Bags Example (b&w)

  2. Friend Classes and Friend Functions (b&w)

  3. 兩星期後 (5/7 (一) 24:00) 交作業四
第十一週 (5/1)
  1. 期中考講解

  2. C/C++ two-dimensional array (b&w)

  3. Assignment Operator (b&w)

  4. Basic Object Design (b&w)

  5. Homeworks:
    1. read Chapter 9 inline function
    2. read Chapter 5 page 263
    3. Disciplined C++ Programming Style (b&w)
    4. Chapter 1: Formal Introduction to OOP (b&w)
第十二週 (5/8)
  1. Operator Overloading (b&w)


  2. Homeworks:
    • read Chapter 12 operator overloading
第十三週 (5/15)  
  1. Operator Overloading (b&w) (cont'd)

  2. Inheritance (b&w)

  3. Homeworks:
第十四週 (5/22)
  1. Advanced Inheritance (b&w)

  2. Polymorphism (b&w)

  3. Homeworks:
    • review Chapter 14
    • review Chapter 15
第十五週 (5/29)
  1. Polymorphism (b&w)

  2. Homeworks:
    • review Chapter 14
    • review Chapter 15
第十六週 (6/5)  
  1. Template (b&w)

  2. Homeworks:
    • review Chapter 14 (page 604-623)
    • 負面思考: OOP 真的有好處嗎? 1, 2, 3
    • review Vol2, Chapter 1
第十七週 (6/12)  
  1. Exception (b&w)

  2. Homeworks:
第十八週 (6/19)

    期末考 (9:30-12:00)
    教室分配表
    請提早 10 分鐘到 INS105 找你的座位

    查詢自己的期末考考卷與成績 (請至作業欄選取期末考)

C++ 程式設計課程 首頁

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