Differences between C ++ and other languages

Source: Internet
Author: User

This article focuses on the C ++ language, the syntax is much simpler, so it is easy for beginners to get started. The two discard the pointer that is most likely to cause problems and completely automate the management of memory, although it brings the stability and security of the program.

Note: Because memory management is automated, the C # and Java languages have an automatic garbage collection mechanism. In C ++, the applied memory must be manually released by the programmer, if you forget this, memory leakage will occur. C ++'s rich language features make up for the following shortcomings to some extent:
◆ Some C ++ libraries have memory management mechanisms, such as STL and Boost.
◆ C ++ has smart pointers.
◆ Some C ++ libraries implement the garbage collection function.
◆ 1.1.3 cross-platform or not

Java programs run on Virtual machines), while C ++ is not. C ++ code runs directly on physical machines. From the perspective of Java and C #, C # is more like the product of the commercial struggle between Microsoft and SUN. Historically, Microsoft has supported the Java language and representative products include Visual J ++ and WFC. Later, Microsoft launched C # For a well-known reason, with a clear goal of competing with Java.

In fact, C # and Java are very similar in terms of features, not just syntax ). Both of them provide mature solutions for GUI, database access, network communication, multithreading, and other closely related aspects of actual applications to facilitate application solutions.

C ++ languages rely more on third-party libraries to implement these functions, because C ++ is an international standard, it takes a long time to add application-oriented features other than these languages to C ++. C # and Java are owners of commercial companies, and various actions are naturally much more agile.

But this does not mean that C ++ is about to die out ). It is undeniable that C ++ has lost some fields in the C # and Java attacks, but C ++ is still widely used, the important reason is that C ++ maintains the efficiency of the C ++ language in some cases and adds the object-oriented feature.

  1. How to Write C ++ project development and project plan correctly
  2. Summary Notes on learning and exploring C ++ library functions
  3. In-depth demonstration of high security of C ++
  4. Describes in detail how to accurately Write C ++ languages.
  5. In-depth demonstration of high security of 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.