As a simpler language than C, C ++ provides a better mechanism to enhance program security. The C ++ compiler has a strict type security check function, it can almost find out all the Syntax problems in the program, which greatly helps developers.
In general, the differences between C ++ and C # and Java are as follows:
1) C #, Java code is compiled to form intermediate code) is executed on the virtual machine. C ++ is not.
2) C # and Java are relatively simple and easy to use compared with C ++. C ++ has many syntax features and is difficult to grasp.
3) The C ++ language itself is a standard. There are differences between various implementations, and the understanding and implementation of the standards are also different. The C # and Java languages are mastered by commercial companies, and there are few problems in this regard.
4) C # and Java are directly oriented to applications, and various standards and models are mature. The various libraries of C ++ may encounter some problems in different C ++ compiler implementations.
5) all three are object-oriented. C # and Java are more thorough than C ++. Some people think that C # and Java are completely object-oriented languages. This is inappropriate because there is no specific standard for object-oriented languages, for example, some people think that the recently popular Ruby language is more object-oriented than C # and Java.
- Analysis on C ++ Parameters
- C ++ Class Definition Format description in C ++
- How do I call C ++ functions?
- Dialysis C ++ array type
- Understanding the basics of C ++ pointers
6) C ++ has many modern and exciting language features, such as templates and generic programming. At this point, C # and Java are also following up quickly.
C ++ is an exquisite and artistic programming language.
The author believes that C ++ is also one of the most flexible and difficult languages in all known programming languages. Learning C ++ also means learning any other advanced programming language. Figure 1.1 compares the four languages C, C ++, C #, and Java.
Before introducing the main application fields of the C ++ language, you can first introduce the usage of the C ++ language. Dr. Bjarne Stroustrup, the father of C ++, mentioned in a discussion about C ++: "C ++ has experienced an explosive growth of 1985-1994 in the first 10 years, 1995-2004 in the next 10 years."
In fact, from the perspective of the author's surrounding environment, this is true. Although the growth speed is not as fast as that of Java and other languages, the number of programmers using C ++ is still growing. This shows that the C ++ language is still keeping up with the "trend" and can still meet the needs of programmers and practical applications. Currently, C ++ does not have much market for Web development.
In enterprise applications, Java and. NETC # are among the most important members. C ++ still has a place. C/C ++ applications are mostly used in system-level development. These three languages have their own characteristics. In general, the application of C ++ is concentrated in the following main fields.