C is the basis of C + + and C is compatible in many ways. Therefore, mastering the C language, and then further learning C + + can be a familiar grammar to learn the object-oriented language, so as to achieve a multiplier goal.
It's almost Win98 's relationship with WinXP. C + + is on the basis of the addition of a new theory, play a new pattern. So called C Gaga.
C is a structured language that focuses on algorithms and data structures. The design of the C program is primarily concerned with the output (or implementation process (transaction) control) of the input (or environmental conditions) that is processed through a process.
C + +, the first consideration is how to construct an object model, so that the model can fit with the corresponding problem domain, so that you can get the state information of the object to get output or implementation process (transaction) control. So the biggest difference between C and C + + is that their way of thinking about solving problems is different. C + + is more advanced than C because "the concept of design has been incorporated into C + +".
There are many differences between C and C + +, here is a brief overview:
1. New program thinking, C language is process-oriented, and C + + is object-oriented.
2, C language has a standard library of functions, they are loosely, just the function of the same function in a header file, and C + + for most of the functions are very tightly integrated, especially the C language does not have a C + + API is a window system of the majority of APIs organic combination, is a collective. But you may also call the API alone.
3, especially in C + + graphics processing, it and C language graphics have a very big difference. The graphics processing functions in C are basically not available in C + +. Graphics processing is not included in the C language standard.
4, C and C + + have the concept of structure, but in C language structure only member variables, and no member method, and in C + + structure, it can have its own member variables and member functions. However, in C language the members of the structure are public, what want to access it can be accessed, and in VC + + it does not have the qualifier for the private.
5, C language can write many aspects of the program, but C + + can write more and better, C + + can write DOS-based programs, write DLLs, write controls, write the system.
6, C language to the program of the organization of the document is loose, almost all the procedures to deal with, and C + + on the organization of the document is engineering, the file classification is clear.
7, the IDE in C + + is very intelligent, and VB, some features may be more powerful than VB.
8. C + + can automatically generate the program structure you want so that you can save a lot of time. There are many tools available such as adding classes in MFC, when adding variables, and so on.
9, there are many additional tools in C + +, you can analyze the system, you can view the API, you can view the control.
10, the debugging function is powerful, and the method is diverse.
Copyright NOTICE: Welcome reprint, Hope in your reprint at the same time, add the original address, thank you with
C language and C + + differences and comparisons