-
C++ Pros:
1.Scalability.
2.Efficient, concise and fast.
3.Portability.
4.characteristics.
5.Powerful and flexible presentation ability and efficiency that is not inferior to C.
6.Support hardware development.
7.The relationship between the program modules is simpler, and the independence of the program modules and the security of the data are well guaranteed.
8.Through inheritance and polymorphism, the reusability of programs can be greatly improved, making software development and maintenance more convenient.
C++ Cons:
1.Comparing the bottom layer, the ease of use is not very good.
2.Multiple inheritance and friend mechanics.
3.The standard library is not covered enough.
4.Long development cycle.
5.Non-parallel.
6.It's hard to master.
7.Granular encapsulation is insufficient.
-
The advantage of learning C++ is that this kind of program that is close to the bottom layer, close to the hardware, or has strict performance requirements can often only be written in the C C++ language - it is not impossible to write in other languages, but it is somewhat meaningless. First of all, C++ is indeed a little more difficult than other programming languages, but it is not in vain, and C++ is much faster to execute than other languages. C++ has fundamental advantages in the following areas:
Low-level system programming, high-level system programming, embedded programming, numerical science computing, general-purpose programming, and hybrid system design, etc. In short, just like the student management system, the dot matrix on the screen also needs one set of management systems after another; These systems are written for us programmers.
-
Advantages, high efficiency, very broad.
Disadvantages, difficult to learn, too broad.
-
Difference Between C and C++.
C is a structured language, as Mr. Tan said: its focus is on algorithms and data structures. The first consideration in the design of C programs is how to calculate and process the input (or environmental conditions) through a process to obtain the output (or realize process (transaction) control), and for C++, the first consideration is how to construct an object model, so that this model can fit the corresponding problem domain, so that the output or process (transaction) control can be obtained by obtaining the state information of the object.
So the biggest difference between C and C++ is that they don't have the same way of thinking about solving problems. The reason why C++ is more advanced than C is because "the concept of design has been integrated into C++", and in terms of the language itself, in C it is more about the concept of algorithms. Then it doesn't matter if it's c or not, wrong!
Algorithms are the foundation of program design, and good design is not good if there are no good algorithms. Moreover, "C plus good design" can also write very good things.
For the language itself, C is a subset of C++, so what kind of subset is it? As can be seen from the above, C implements procedural control and other related functions in C++, while C in C++ (I call it "C+") is strengthened compared to the original C, introducing overloading, inline functions, exception handling, etc., and C++ expands the content of object-oriented design, such as classes, inheritance, virtual functions, templates, and package container classes.
To improve a little further, in C++, data encapsulation and types are nothing new, and there are issues to consider, such as: the choice of object granularity, the design and inheritance of object interfaces, the use of composition and inheritance, and so on.
So C++ contains a richer concept of "design" than C, but C is a self-consistent subset of C++, which also has powerful features and is also worth learning.
-
C++ expands and refines the C language and is object-oriented, while C is process-oriented.
Object-oriented ones can use encapsulation, inheritance, and polymorphism, as well as have classes.
-
Primarily object-oriented programming.
Note that this is C, not C++
scanf("%d",&a[i]);i is not initialized. The default value is 0??It's been a long time since I've done C. >>>More
Don't understand what you mean by startmark and enterstumark. >>>More
I'm sweating neurotic.
You can't get 20,000 points. >>>More
In terms of brand recognition, the brand recognition of Skoda and Citroen is average, but because of Octavia's good reputation, Skoda is actually slightly stronger than Citroen. Haorui's design is a little more atmospheric, the segmented trunk at the rear is more practical, and the interior space is better. The turbocharged engine is much better than the naturally aspirated engine of the C5, but the maintenance cost of the turbocharged engine is higher in the later stages. >>>More
The so-called poor character refers to his fake fall, not really character. >>>More