C + + language Basic Tutorial 16th lesson: C + + and the difference with C __c++

Source: Internet
Author: User

starting with this section, enter the introduction to the C + + language.

There may be people wondering why the C + + language Basic Tutorial 16th lesson: C + + and the difference with C?

Here's a little explanation, C + + is often referred to as "C" with class. Basically, C is a subset of C + +. That means before 15 lessons,

C language Introduction, is a process-oriented programming language introduction, in fact, is also a C + + process-oriented programming language part of the introduction.


C + + is an intermediate language that was designed and developed by Bjarne Stroustrup in Bell Labs in 1979. C + + has further expanded and perfected the language, which is an object-oriented programming language. C + + can run on a variety of platforms, such as Windows, MAC operating systems, and various versions of UNIX.


C + + is a statically typed, compiled, generic, case-sensitive, irregular programming language that supports procedural programming, object-oriented programming, and generic programming.

C + + is considered to be an intermediate language that combines the characteristics of high-level and low-level languages.

C + + was designed and developed by Bjarne Stroustrup in 1979 at the Murray Hill Laboratory in New Jersey. C + + has further expanded and perfected the language, originally named with Class C, later renamed as C + + in 1983.

C + + is a superset of c. In fact, any legitimate C program is a valid C + + program.


Learning C + +, the key is to understand the concept, but not too much to delve into the technical details of the language.

Why would =====> say that? Because the details of C + + is too much, and many are Mara, many details throughout the career also use, understand can.

Standardization

term
Publish Time Document GenericNotes  
2015 ISO/IEC TS 19,570:2015 - Extensions for Parallel computing
2015 ISO/IEC TS 18,822:2015 - File system
2014 ISO/IEC 14,882:2014 C++14 Fourth C + + standard
2011 ISO/IEC TR 24,733:2011 - Decimal floating-point number extension
2011 ISO/IEC 14,882:2011 c++11 Third C + + standard
2010 ISO/IEC TR 29,124:2010 - mathematical function Extension
2007 ISO/IEC TR 19,768:2007 C++tr1 C + + technical reports: library extensions
2006 ISO/IEC TR 18,015:2006 - C + + Performance Technical Report
2003 ISO/IEC 14,882:2003 c++03 Second C + + standard
1998 ISO/IEC 14,882:1998 C++98 The first C + + standard

This book uses the following books as a textbook:

1. "C + + programming Course", Money can

2. C + + Primer 5th edition (Chinese version)

3. Internet


as a more powerful programming language that distinguishes it from C, C + + is significantly different from C.

in my opinion, there are mainly the following differences:

A. From a programmatic approach, C + + is more abstract, mainly using object-oriented programming methods, and C is the classic process-oriented programming.

B. In terms of programming details, C + + adds new content such as references, classes, templates, generic programming, and exception handling mechanisms.


Here is a brief introduction to the different places in front of the C language:

1. C + + 's source file suffix name is. cpp, and no longer. C

2. The commonly used header file is no longer #include <stdio.h>

#include <iostream>

using namespace Std;

The input output is no longer printf and scanf, but cout and CIN, of course, printf and scanf can also be used.

3. & has more uses, citing

4. Adding object-oriented classes

5. Increased template and generics programming

6. Increased exception handling



Related Article

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.