Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

C++ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language. This tag should be used for any question which requires knowledge or expertise with the C++ programming language. This is a general tag which is used for any of the C++ language standards (C++98, C++11, C++17, etc.). The question should identify the compiler being used, the operating system, and which of the C++ standards is being targeted.

From the C++ tag wiki on Stack Overflow:

Code Review Snippets

As an experiment I am starting to collect snippets of common Code Review things that happen repeatedly here: Code Review

Original Content

C++ is a statically-typed, free-form, (usually) compiled, multi-paradigm, intermediate-level, general-purpose programming language not to be confused with C. It was developed in the early 1980's by Bjarne Stroustrup as a set of extensions to the C programming language. Building on C, C++ improved type-safety and added support for automatic resource management, object-orientation, generic programming, and exception handling, among other features.

New to C++?

Whether you are new to programming or are coming to C++ from another programming language, it is highly recommended to have a good book from which to learn the language. Stack Overflow keeps a detailed list of books.

If you are looking for a good compiler, g++ is the most commonly used compiler on Linux and other platforms, clang is the official compiler on Mac and FreeBSD, and Microsoft Visual C++ is the most commonly used on Windows.

Online compilers

External FAQs

Other External Resources

history | excerpt history

Code Language (used for syntax highlighting): lang-cpp