C++ is an actively used programming language created in 1985. C++ ( pronounced cee plus plus) 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. Read more on Wikipedia...

35Years Old 4,004,752Users 61,287Jobs

Example code from the Hello World Collection:

// Hello World in C++ (pre-ISO)

#include <iostream.h>

    cout << "Hello World!" << endl;
    return 0;

Example code from Linguist:

#include <cstdint>

namespace Gui


Example code from Wikipedia:

1 #include <iostream>
2 #include <vector>
3 #include <stdexcept>
5 int main() {
6     try {
7         std::vector<int> vec{3, 4, 3, 1};
8         int i{vec.at(4)}; // Throws an exception, std::out_of_range (indexing for vec is from 0-3 not 1-4)
9     }
10     // An exception handler, catches std::out_of_range, which is thrown by vec.at(4)
11     catch (std::out_of_range &e) {
12         std::cerr << "Accessing a non-existent element: " << e.what() << '\n';
13     }
14     // To catch any other standard library exceptions (they derive from std::exception)
15     catch (std::exception &e) {
16         std::cerr << "Exception thrown: " << e.what() << '\n';
17     }
18     // Catch any unrecognised exceptions (i.e. those which don't derive from std::exception)
19     catch (...) {
20         std::cerr << "Some fatal error\n";
21     }
22 }

Trending Repos

repo stars description
mediapipe 2824 MediaPipe is a cross-platform framework for building multimodal applied machine learning pipelines
fmt 6596 A modern formatting library
Hazel 1589 Hazel Engine
Sonoff-Tasmota 7683 Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE or PlatformIO
imgui 16553 Dear ImGui: Bloat-free Immediate Mode Graphical User interface for C++ with minimal dependencies
SuperWeChatPC 2071 超级微信电脑客户端,支持多开、防消息撤销、语音消息备份...开放WeChatSDK
gnuradio 1798 GNU Radio
plaidml 2457 PlaidML is a framework for making deep learning work everywhere.
WeChatRobot 1468 PC版微信机器人
interview 7108 📚 C/C++ 技术面试基础知识总结,包括语言、程序库、数据结构、算法、系统、网络、链接装载库等知识及面试经验、招聘、内推等信息。
entt 2053 Gaming meets modern C++ - a fast and reliable entity-component system (ECS) and much more
videos 535 The official distribution of olcConsoleGameEngine, a tool used in javidx9's YouTube videos and projects
dolphin 5521 Dolphin is a GameCube / Wii emulator, allowing you to play games for these two platforms on PC with improvements.
osquery 14868 SQL powered operating system instrumentation, monitoring, and analytics.
Osiris 260 Free open-source training software / cheat for Counter-Strike: Global Offensive, written in modern C++. GUI powered by imgui.
carla 3098 Open-source simulator for autonomous driving research.
grpc 22945 The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
FastLED 3180 The main FastLED library (successor to FastSPI_LED). Please direct questions/requests for advice to the reddit community - http://fastled.io/r - we'd like to keep issues to just tracking bugs/enhancements/tasks. *NOTE* major library work is currently on hold
Tars 7510 Tars is a high-performance RPC framework based on name service and Tars protocol, also integrated administration platform, and implemented hosting-service via flexible schedule.
thrift 6723 Apache Thrift
DALI 1829 A library containing both highly optimized building blocks and an execution engine for data pre-processing in deep learning applications
leetcode 11615 LeetCode Problems' Solutions
llvm-project 1832 This is the canonical git mirror of the LLVM subversion repository. The repository does not accept github pull requests at this moment. Please submit your patches at http://reviews.llvm.org.
pytorch 31392 Tensors and Dynamic neural networks in Python with strong GPU acceleration
onnxruntime 1113 ONNX Runtime: cross-platform, high performance scoring engine for ML models

Last updated August 9th, 2020

Edit C++ on GitHub