2002
1 Fundamentals
2 Fundamental Types, Constants, and Variables
3 Using Functions and Classes
4 Input and Output with Streams
5 Operators for Fundamental Types
1 Fundamentals
P 22 , fundamental OO C++
p 23 characteristics
C++ – C – universal , efficient , close to the machine, portable
– OOp – data abstraction , data hinding , inheritance , polymorphism
– Extensions – exception handling , templates
p 24 , Historical perspective – early version อ้างถึง c with classes
โดย ++ หมายถึง increment operator in C
1989 ANSI ตั้ง standard C++
Characteristic C++ มันไม่ได้เป็น purely oo
แต่มัน hybrid contain – fn
นั้นคือใช้ได้ทุก feature ใน c
-universally usable modular programs
-efficent close to machine program
-portable กับ various platforms
-data abstraction – create class to describe objects
-data encapsulation – controlled access object data
-inheritance – create derived classes – include multiple derived classes
– polymorphism – implement of instructoin, varying effect ระหว่าง program execution
various language elements ถูก add เข้าไปใน C++ eg references , templates , exception handling
p 25 , OOP


p 26 , Traditional Procudure programming – data ,fn(subrouting, procedures) ถูกจัดเก็บแยกกับ data process
2 Fundamental Types, Constants, and Variables
3 Using Functions and Classes
4 Input and Output with Streams
5 Operators for Fundamental Types
