Overview of C++ Language

Language History – Milestones

  • 1972: The earliest version of C language aimed at developing the UNIX system.

  • 1989: The first standard of C language, ANSI C, <span>known as C89/C90</span>

  • 1980: Bell Labs, ==C language + Object-Oriented== ==>> The first version of C++.

Overview of C++ Language

  • 1994: The first C++ standard, ANSI C++.

  • 1998/1999: Confirmation of proposals like STL, ANSI/ISO standard, regarded as ==Standard C++.==

    All compilers default support <span>the well-known C++99 standard, although not every compiler has fully implemented this standard.</span>

  • 2011: Significant introduction of new features, correction of many defects, or syntax improvements ==>> C++11,

    Most compilation environments require additional compilation options.

  • 2014, 2017, 2020: Various corrections and introduction of many features, some of which faced opposition.

C/C++ is Successful

40 years is a long time for programming languages, during which many new contenders have emerged.

Delphi, Java, C#, Go, Rust: modern design concepts.

Overview of C++ Language

Python, Ruby, PHP, JS… scripting languages are more flexible and agile.

C/C++ has maintained a large user base, monopolizing critical fields such as operating systems, embedded systems, and real-time applications.

Why Does C/C++ Endure?

  1. Balancing Usability (User-Friendly) and Directness (Machine Efficiency)

    Simplicity and efficiency, avoiding unnecessary abstraction ==>> Execution efficiency.

Overview of C++ Language

  1. Compatibility is Crucial!!!

C++ is fully compatible with C, and modern compilers are compatible with libraries from the 1980s.

High-quality libraries, diverse and numerous, are both an asset and a burden…

Compilation speed? Achieved through strategies like precompiled headers.

Features of C++ Language

  • Compiled LanguageCompilation vs Interpretation, Half-Compiled, JIT.

  • Static TypingAllows the compiler to intervene and supervise more.Benefits: Errors can be detected during compilation.Benefits: The compiler can perform deep optimizations on the target code.

Overview of C++ Language

  • Weak TypingThe compiler does not enforce unless necessary.

  • Source Code ProtectionIt is difficult to reverse-engineer the source code from the product, maintaining copyright.

Do Not Build Towers on Shifting Sands

C/C++ is a powerful tool!!!

The premise is: Users must ==truly understand== its operating principles and features to master it.

One cannot be half-informed or misled.

This weapon, when used correctly, can defeat the enemy in one move!

Real-time Feedback

1.What main features does C++ add to C language?

A Aspect-Oriented

B Object-Oriented

C Functional

D Concurrent

2.What type of high-level language is C++?

A Compiled

B Interpreted

C JIT (Just-In-Time Compilation)

D Virtual Machine

Answers

1=>B 2=>A

Leave a Comment