1. Tangled C + +

Source: Internet
Author: User




C + + from the literal meaning of understanding, give people feel like a C language upgrade version.
C Plus Plus

But C + + adds too much syntax.
It's a lot more than that.

Let's give an example:
Suppose you put an elephant in the refrigerator.
We write three functions respectively.

Open the refrigerator door ()
Put the elephant in ()
Close the refrigerator door ()

void Main () {
Open the refrigerator door ();
.................

}

Called process-oriented. We have previously studied the C language programming approach, called process-oriented development.

and C + + not only supports the same writing as the C language above.
Besides, there are n ways to solve the problem.

This leads to C + + learning is very difficult, very complex, expensive, but also because C + + is too complex, some design flaws, to avoid mistakes, learning to "trample the pit" too many places.

It also takes a year to use C + + learning, which may have little effect.
But in other programming languages, there are many real-world problems that can be solved.

The amount of time input/output ratio, very low.

Currently, in addition to some GUI and game areas, more and more areas are being replaced by other programming languages, which can be developed faster and more efficiently.
Including the father of Linux is also a C + + exclusion, he thought C + + to complicate the problem.
and C + + compiler is also very complex, the compiler version of the different, resulting in the same C + + source code, compatibility is particularly poor.
This compiler can pass the code, that compiler prompt error, and the error is inexplicable, troubleshooting is very troublesome.


So C + + is not only difficult to learn, with bad words, but will "hurt" to themselves.
Java is a castrated version of C + +.

https://www.zhihu.com/question/38101493

However, because of this, C + + contains many programming language features.
We have a simple study of C + + function, which will help us to learn other programming languages.

In the future if you learn Java or Python, you will be tempted to contrast with C + +.
More able to understand the differences between them, as well as their respective charm.

and understand, under what circumstances, with what programming language, can most efficiently solve the problem in hand.
We programmers should not limit themselves, add titles to themselves, I am C programmer, I am C + + programmer, I am a python programmer, I am a Java programmer.

First-class programmers, when confronted with project problems, initially assess the project's difficulty, and then consider which programming language can be used to find a balance between performance and development time.
Consider how to assign tasks ...

There are many new noun concepts in C + +.
The C language is more abstract.


These concepts and nouns are often invented for large-scale software development projects.
Therefore, we simply to learn C + +, and learn C + + grammar, it is difficult to understand, always feel clearly there is a simpler way, why to write code so "Trouble", "Circle"!

I try to be able to understand the language, to everyone speak C + + bar.

C + + On the basis of the compiler for us to do a lot of things, and the compiler for us to do something more, it means that we can write a lot less code.
So, don't be too scared of C + +!

But the advantages are often shortcomings.

A gentle person, most likely, is often a cowardly person.
A brave man is likely to be a reckless man.


C + + gives us a variety of syntax, let's write a lot less code.
But these grammatical changes, the flexibility is too strong, so that we look at the code, and finally understand what is going on in memory, what is the compiler behind what we do.


If we write the code, we can not understand what has happened in the memory of the changes, it may produce an understanding error.
And if a program, the code is more and more large, uncertain places more and more, the program may end up completely "collapsed", the key is that you do not know exactly where the problem.


And because C + + is too flexible.
You can enjoy a and C two ways of developing.
He likes c+e+b three different ways of mixing development.


Even though you're writing C + + code, you can't read each other's C + + code.

C + + is very ambitious and wants to get everything done, so many of the latest programming techniques can be viewed in C + +.
From the next class onwards, we are formally stepping into the world of C + +.

I personally think C + + is a very "heavy" programming language, I love it and hate it

1. Tangled C + +

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.