Skip to main content

C++

C++

C++
ParadigmMulti-paradigm: procedural, functional, object-oriented, generic[1]
Designed byBjarne Stroustrup
First appeared1983; 33 years ago
Stable releaseISO/IEC 14882:2014 / 15 December 2014; 18 months ago
Typing disciplineStatic, nominative, partially inferred
Implementation languageC++
OSCross-platform
Filename extensions.cc .cpp .cxx .C .c++ .h .hh .hpp .hxx .h++
Websiteisocpp.org
Major implementations
LLVM Clang, GCC, Microsoft Visual C++, Embarcadero C++Builder, Intel C++ Compiler,IBM XL C++
Influenced by
C, Simula, ALGOL 68, Ada, CLU, ML
Influenced
Ada 95, C99, C#,[2] Chapel,[3] D, Java,[4] Lua, Rust, Python, Perl, PHP
C++ (pronounced as cee plus plus, /ˈsiː plʌs plʌs/) is a general-purpose programming language. It has imperative, object-oriented and generic programming features, while also providing facilities for low-level memory manipulation.
It was designed with a bias toward system programming and embedded, resource-constrained and large systems, with performance, efficiency and flexibility of use as its design highlights.[5] C++ has also been found useful in many other contexts, with key strengths being software infrastructure and resource-constrained applications,[5] including desktop applications, servers (e.g. e-commerce, web search or SQL servers), and performance-critical applications (e.g. telephone switches or space probes).[6] C++ is a compiled language, with implementations of it available on many platforms and provided by various organizations, including the Free Software Foundation (FSF's GCC),LLVM, Microsoft, Intel and IBM.
C++ is standardized by the International Organization for Standardization (ISO), with the latest standard version ratified and published by ISO in December 2014 as ISO/IEC 14882:2014 (informally known as C++14).[7] The C++ programming language was initially standardized in 1998 as ISO/IEC 14882:1998, which was then amended by the C++03, ISO/IEC 14882:2003, standard. The current C++14 standard supersedes these and C++11, with new features and an enlarged standard library. Before the initial standardization in 1998, C++ was developed by Bjarne Stroustrup at Bell Labs since 1979, as an extension of the C language as he wanted an efficient and flexible language similar to C, which also provided high-level features for program organization.
Many other programming languages have been influenced by C++, includingC#, Java, and newer versions of C (after 1998).
source wikipedia


C++ DESCRIPTION BY COMPUTERHOPE.COM
C++ is a high-level programming language developed by Bjarne Stroustrup at Bell Labs beginning in 1979.
The original title of C++ was "C with classes". While he was a graduate student, Stroustrup was frustrated that available languages offered him either fast performance or high-level features for program organization, but not both. This inspired him to write his own programming language.
He set out to create a programming language thatcompiles to lean, efficient code, but also provides high-level abstractions to better manage large development projects. The language was later named "C++", a tongue-in-cheek reference to ++, an operator in C that increments a value by one.
Since then, C++ has become one of the most widely-used languages in the world, especially in projects where performance comes at a premium. C++ continues to be updated and maintained; the current version is C++ 11, released in 2011.

Features

The syntax of C++ is largely inherited from C. It adds object-oriented features to its predecessor, such as classes, abstraction, encapsulation, inheritance, and polymorphism. It also provides functionality for function and operator overloading, generic programming facilities (such as the ability to create templates), andexception handling. C++ also features and a robust standard library (STL) of useful data structures, algorithms, and input/output facilities.

Hello, World! In C++

Here is an example "Hello, World!" program written in C++, using the I/O stream facility; part of the C++ STL:
#include <iostream>

int main()
{
  std::cout << "Hello, world!\n";
}

Comments

Popular posts from this blog

History of C++

History Edit Bjarne Stroustrup , the creator of C++ In 1979,  Bjarne Stroustrup , a Danish computer scientist, began work on the predecessor to C++, " C with  Classes ". [8]  The motivation for creating a new language originated from Stroustrup's experience in programming for his Ph.D. thesis. Stroustrup found that  Simula  had features that were very helpful for large software development, but the language was too slow for practical use, while  BCPL  was fast but too low-level to be suitable for large software development. When Stroustrup started working in  AT&T Bell Labs , he had the problem of analyzing the  UNIX   kernel  with respect to  distributed computing . Remembering his Ph.D. experience, Stroustrup set out to enhance the  C language with  Simula -like features. [9]  C was chosen because it was general-purpose, fast, portable and widely used. As well as C and Simula's influences, other ...

Compatibility of C and C++

Compatibility of C and C++ From Wikipedia, the free encyclopedia This article  needs additional citations for  verification .  Please help  improve this article  by  adding citations to reliable sources . Unsourced material may be challenged and removed.   (August 2013)   ( Learn how and when to remove this template message ) Programming language comparisons General comparison Basic syntax Basic instructions Exception handling Enumerated types Anonymous functions Conditional expressions Functional instructions Arrays Associative arrays String operations String functions List comprehension Object-oriented programming Object-oriented constructors While loops For loops Evaluation strategy List of "Hello World" programs Languages with dependent types Comparison of type systems Comparison of individual languages [show] v t e The  C  and  C++   programming languages ...

System partition and boot partition

System partition and boot partition From Wikipedia, the free encyclopedia System partition  and  boot partition  are computing terms for  disk partitions  of a  hard disk drive  that must exist and be properly configured for a system to operate correctly. There are two different definitions for these terms:  Microsoft  definition (used by  Windows ) and the common definition used by every other operating system. Common definition [ edit ] In context of every operating system, save those developed by  Microsoft Corporation , system partition and boot partition are defined as follows: The  boot partition  is a  primary partition  that contains the  boot loader , a piece of software responsible for booting the OS. For example, in the standard  Linux  directory layout ( Filesystem Hierarchy Standard ), boot files (such as the  kernel ,  initrd , and boot loader  GR...