This article introduces the C, C + +, VC + + Three differences between, perhaps as a beginner, it will be easy to confuse. Hope that through the introduction of this article, can bring you help.
The following is a C,C + +, VC + + The difference between the three. For everyone's reference.
C language is an ancient and enduring computer programming language, which was born in the 60 's of the last century. Because its design has many advantages, many years has been favored by the majority of program designers, and gradually eliminated a lot of other programming language. Most of the software we use is developed in C language.
Many of the later languages also follow a lot of its stuff. C language programming is a process-oriented development approach. In other words, when solving a problem, the programmer needs to think about how the computer should complete the problem step after time and then turn the process into code.
When the software becomes more and more complex, the code grows longer, a person's mental power is limited, the process-oriented approach is difficult to develop, often written behind, forget what was written in the front. And complex software often requires a lot of people co-development, but also increased the difficulty of development. A kind of software development method called Object-oriented is born. Object-oriented thinking is hard to say with a few words.
The domestic computer textbooks in this time often also said that it is not clear what is called object-oriented. This word may only be understood. Need to develop some relevant software to understand. This is still not a specific point. C language is not object-oriented, and the programmer is inseparable from the C language, so some people in the C language based on the addition of object-oriented functions, that is, C + +. At the same time, C + + modifies some of the inconvenient provisions of language, C language to use more convenient.
Here are two points to note:
1. Rectification's well-known <> used a few pages to briefly introduce C + +, but he spoke of C + + just mentioned above to modify the C language inconvenient rules, involving object-oriented content is not.
2.c++ is based on the C language, but not C + + than the C language advanced, the two programming ideas are not the same, the field of application is not the same. In their own fields, no one can replace anyone. And, after the advent of the Windows operating system, developing a graphical interface program for the Windows platform is a big challenge. While the C language can be developed, programmers spend a lot of time working on graphical interfaces. At the same time, the Windows platform graphical interface program has many similarities. To liberate programmers from their focus on program functionality rather than on graphical interfaces, Microsoft has introduced a visual series of software development environments, including Visual C + + for C + + programmers. Programmers can use the C + + language to develop graphical interface software. Microsoft provides many library functions for displaying the Windows interface with Visual C + +. It can be said that Visual C + + is the C + + Windows graphical interface.
If you want to learn C + + and C language, just learn Visual C + + on the line? Wrong! Any Visual C + + textbook on the market is assumed that the user has mastered the C + + language, focusing on the Windows programming related things, and often have to speak of MFC. There is no C + + base, and there is no way to understand anything about MFC.
Many people find it hard to spend six months or even a year learning C + +. Even a graphical interface of the program is not developed, it is not cost-effective. The idea is also wrong. Only part of the world's software has a graphical interface that runs on the Windows platform and needs to be developed in Visual C + +. Learn C + +, even if you do not learn Visual C + +, it is also a promising.
There are a lot of people, to learn C + + or C language, first of all Visual C + + installed. In fact, this is a misunderstanding. Visual C + + operations are complex and help developers do a lot of things. For beginners, it takes a lot of time to master the use of Visual C + + to manipulate complex words. Help developers do those things, often beginners need to understand, their own hands to do, to learn more good.
Besides, we often pretend to be illegal version, this kind of thing is not to be investigated. I have a guilty conscience. We learn software is not to earn money, but they do not respect the work of the predecessors of the results, it is shameless ah.
I suggest C language and C + + beginners, on the computer practice best with their favorite code editor after the compilation with GCC, for future deep learning is of great benefit. Or that sentence, theory plus practice is the best teacher.
Note: This article turns from: http://developer.51cto.com/art/201107/275818.htm
Beginner's Notice the difference between C, C + + and VC + +