Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

C++ Introduction

C++ Introduction

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

C++ is considered aIntermediatelanguage, combining the features of high-level and low-level languages.

C++ was designed and developed by Bjarne Stroustrup starting in 1979 at Bell Labs in Murray Hill, New Jersey; it further extended and improved C, initially named C with Classes, and later renamed C++ in 1983.

C++ is a superset of C; in fact, any valid C program is a valid C++ program.

**Note:** Statically typed programming languages perform type checking at compile time, not at runtime.

Object-oriented programming

C++ fully supports object-oriented programming, including the four major characteristics of object-oriented development:

Standard library

Standard C++ consists of three important parts:

ANSI standard

The ANSI standard ensures the portability of C++ — the code you write can be compiled on Mac, UNIX, Windows, and Alpha computers.

Since the ANSI standard has been stable for a long time, all major C++ compiler manufacturers support the ANSI standard.

Learning C++

To learn C++, the key is to understand concepts rather than dwell too much on the technical details of the language.

The purpose of learning a programming language is to become a better programmer, that is, to design and implement new systems and maintain old ones more efficiently.

C++ supports multiple programming styles. You can write code using the programming style of any language such as Fortran, C, or Smalltalk. Each style can effectively guarantee runtime efficiency and space efficiency.

Uses of C++

The C++ language is widely used in many industries and fields, including:


Standardization

Release date Common name Notes
2020 C++20, C++2a ISO/IEC 14882:2020
2017 C++17 Fifth C++ standard
2017 coroutines TS Coroutine library extensions
2017 ranges TS Provides range mechanism
2017 library fundamentals TS Standard library extensions
2016 concurrency TS Extensions for concurrent computing
2015 concepts TS Concepts library, for optimizing compile-time information
2015 TM TS Transactional memory operations
2015 parallelism TS Extensions for parallel computing
2015 filesystem TS Filesystem
2014 C++14 Fourth C++ standard
2011 - Decimal floating-point extensions
2011 C++11 Third C++ standard
2010 - Mathematical functions extensions
2007 C++TR1 C++ Technical Report: Library Extensions
2006 - C++ Performance Technical Report
2003 C++03 Second C++ standard
1998 C++98 First C++ standard