What is "c++"

What is C++?

C++ (Portuguese for "cê mais", English for "see plus plus") is a general-purpose multi-paradigm programming language. The language is considered to be medium-level, as it combines features of high and low-level languages. Since the 1990s it is one of the most popular commercial languages, being widely used also in academia for its great performance and user base.

Bjarne Stroustrup developed C++ (originally named C with Classes, which means C with Classes in English) in 1983 at Bell Labs as an addition to the C language. New features were added over time, such as virtual functions, operator overload, multiple inheritance, templates and exception handling. After the ISO standardization carried out in 1998 and the subsequent revision carried out in 2003, a new version of the language specification was released in September 2011, known informally as C++11.

Although based on C, C++ is a different language and introduces several new functionalities to what previously existed in C, such as improved type security, improved resource management, object orientation, generic programming, exception manipulation, etc. Even if there is a certain level of compatibility, C++ does not completely include the C language and should not be confused.

New in the C++?

If you are looking for a good compiler, GCC(in English) is the most used compiler on Linux and other platforms, Clang(in English) is the official compiler on Mac and Freebsd and Microsoft Visual C++(in English) is the most commonly used in Windows.

C++11

The standard language remained virtually the same for a long time, but the new C++11 standard (known prior to release as C++0x) has been published as ISO / IEC 14882:2011 (in English). Since then it has been implemented gradually as compilers are supporting the new language features. See C++11 Bjarne Stroustrup FAQ(in English) to find out what’s new in the language, and check the Faqs of the compilers themselves to see which of these resources are currently supported (links in English):

Some features that were under discussion for C++0x were postponed to the next iterations, predicted as C++14 and C++17 .

Compilers online

There are several services that offer access to C++ compilers from the browser. Its use is suggested in questions and answers to demonstrate a specific behavior. Some of these (in English):

Have a question?

When you ask a question, be sure to include any source code corresponding to the problem. Try to keep the code as small as possible but you may be able to reproduce the problem. Often the problem will be encountered during the process of creating that sample code. Try to make sure that the source code is compilable if possible. Do not forget to indicate:

  • the compiler you are using, including its version and platform;
  • the exact error message given by the compiler (if it issued any)
  • the result you got
  • the result you hoped to obtain

Books in Portuguese

To learn more

A good suggestion of links with diverse material about C++ is this page of Zeef.