Chapter 2 C ++ Overview
1 C ++ is a commonProgramDesign Language, especially for system programming.
-- Is a better C
-- Supports data abstraction
-- Supports Object-Oriented Programming
-- Supports General Program Design
2. A language supports a certain style of programming. If it provides some features, it makes it easier for him to use this style of programming. If you want to write such a program, you have to make great efforts or use various techniques, so this language does not support some technology. This language only allows the use of this technology. For example, you can write a structured program in FORTRAN77 or an object-oriented program in C, but it is surprisingly difficult to do so because this language does not directly support these technologies.
The three languages are not better than other languages because they do not have certain features. There are too many examples of this. The most important question is not how many features a language has, but whether the features it has are sufficient to support a desired programming style in a desired application field:
4. The procedural programming model is:
Are you sure you need those processes?
Use the best one you can findAlgorithm
5 modular program design specifications:
Determine which modules you need; divide programs
Some modules to hide data in the module