C++

From Wikipedia, the free encyclopedia
Jump to: navigation, search
C++
Paradigm(s) Multi-paradigm:[1] procedural, object-oriented, generic
Appeared in 1983
Designed by Bjarne Stroustrup
Developer Bjarne Stroustrup
Bell Labs
ISO/IEC JTC1/SC22/WG21
Stable release ISO/IEC 14882:2011 (2011)
Typing discipline Static, unsafe, nominative
Major implementations C++ Builder, clang, Comeau C/C++, GCC, Intel C++ Compiler, Microsoft Visual C++, Sun Studio
Dialects ISO/IEC C++ 1998, ISO/IEC C++ 2003, ISO/IEC C++ 2011
Influenced by C, Simula, Ada 83, ALGOL 68, CLU, ML[1]
Influenced Perl, LPC, Lua, Pike, Ada 95, Java, PHP, D, C99, C#, Falcon
OS Cross-platform (multi-platform)
Usual filename extensions .h .hh .hpp .hxx .h++ .cc .cpp .cxx .c++
Wikibooks logo C++ Programming at Wikibooks
Bjarne Stroustrup, the creator of C++

C++ (pronounced "see plus plus") is a computer programming language. It has been created for writing programs for many different purposes. In the 1990s, C++ became one of the most used programming languages.

The C++ programming language was developed by Bjarne Stroustrup at Bell Labs in the 1980s. It was originally named "C with classes". The language was planned as a better version of the C programming language and it added features like object-oriented programming. Step by step, a lot of advanced features were added to the language, like operator overloading, exception handling and templates.

[change] Example

The following text is C++ source code and it will write the words "Hello World!" to the screen when it has been compiled and is executed.

#include <iostream>
using namespace std;
 
int main()
{
    cout << "Hello World!";
 
    return 0;
}

[change] References

  1. 1.0 1.1 Stroustrup, Bjarne (1997). "1". The C++ Programming Language (Third ed.). ISBN 0201889544. OCLC 59193992. 
Personal tools
Namespaces

Variants
Actions
Getting around
Print/export
Toolbox
In other languages