2004 Spring 課程內容摘要

課程摘要
第一週 (2/16)

  1. 課程大綱, 參考書籍, 線上資料,

  2. C 語法複習 (basic data type, array type, for/while/break/continue, if/switch control statements, struct, typedef, pointers)

  3. demonstration of VC 6, IDE, command line (vcvars32.bat, cl), UNIX: gcc, g++

  4. typedef usages

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

  6. Homeworks:
第二週 (2/23)

  1. Making and Using Objects

  2. C++ Console I/O

  3. Homeworks:
    • review Chapter 2
    • File I/O
    • read Chapter 3, 4
    • quiz next week
第三週 (3/1)

  1. objects, design according to the interface, abstraction, design by contract

  2. Abstract Data Type

  3. Objects and Classes

  4. 下週 (3/8) 交第一次作業

  5. File I/O

  6. Homeworks:
第四週 (3/8)

  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),
    • reference,
    • function signature and name mangling,
    • parameter defaults

  2. Abstraction and Interfaces

  3. Homeworks:
第五週 (3/15)

  1. Quiz #1 solutions

  2. Assignment #1 Problems

  3. objects, design according to the interface, abstraction, design by contract

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

  5. Object Oriented Programming Example 3Bags

  6. Homeworks:
    • read Chapter 6
第六週 (3/22)

  1. Constructors and Destructors

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

  3. Homeworks:
    • read Chapter 8
第七週 (3/29)

  1. Formal Introduction to OOP

  2. Basic Object Design

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

  4. Homeworks:
    • read Chapter 9
第八週 (4/5)
    春假
第九週 (4/12)
    期中考 (10:20-12:00)
第十週 (4/19)

  1. 期中考講解, matrix1.cpp, matrix2.cpp, matrix.dat

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

  3. Copy Constructor
第十一週 (4/26)

  1. Assignment Operator and The Big Three

  2. Friend Classes and Friend Functions

  3. Basic Object Design
第十二週 (5/3)

  1. Basic Object Design

  2. Operator Overloading

  3. Formal Introduction to OOP
第十三週 (5/10)

  1. Inheritance

  2. Proper Inheritance
第十四週 (5/17)

  1. Polymorphism
第十五週 (5/24)

  1. Polymorphism continued

  2. Advanced Inheritance
第十六週 (5/31)

  1. Template

  2. Exception
第十七週 (6/7)

  1. State Diagram
第十八週 (6/14)

  1. UML 語法介紹, 參考資料
第十九週 (6/21)
    期末考 (10:20-12:00)

C++ 程式設計課程 首頁

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