这里我无意介绍C++的历史,有兴趣的话google it。
首先,从C++的定位开始:
在Bjarne Stroustrup的一个网页上介绍了这些:
C++ is a general purpose programming language with a bias towards systems programming that
- is a better C
- supports data abstraction
- supports object-oriented programming
- supports generic programming.
另外,还有一些必要的介绍:
C++ supports
+ Classes, instances, and methods
+ Polymorphism, encapsulation, and inheritance
C++ does not support
- Automatic garbage collection
- dynamic creation of classes
The main forte of C++ is code reuse and encapsulation. Since most modern programming enterprises involve thousands of lines of code, these features have given C++ its popularity, and, to many, the language constitutes the last "... piece of wood to hang in the middle of the ocean ..."
The following points will be covered for C++:
• Programming Style in C++ (differences between C and C++)
• C++ enhancements over C.
• References and their relation to pointers
• Classes
• Memory Allocation
• More features of classes (static members, friends, arrays of instances, new and delete operators)
• Inheritance, polymorphism, virtual functions
• Operator overloading
• Templates
• Run Time Exception Handling
没有评论:
发表评论