2008-01-08

prologue——序章

  我是一个业余学习人员,也就是说,编程与计算机科学不是我的本行也不是我学习的专业,但是我的自我规划中安排了学习C或者C++这一项,于是开始学习,实际上,我几个月前就开始学习C++,很明显,由于没有做过任何学习笔记导致现在整体编写能力还是十分不令人满意,所以现在我开始从头做过笔记,也重新学习一遍。
  这里我无意介绍C++的历史,有兴趣的话google it。

首先,从C++的定位开始:
在Bjarne Stroustrup的一个网页上介绍了这些:

The C++ Programming Language

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

没有评论: