C++

Also known as: Cpp, C plus plus

C++ extends C with classes, templates, RAII, and a large standard library. Used for performance-critical applications, games, and systems that still want zero-cost abstractions.

#include <iostream>
#include <string>

std::string greet(const std::string& name) {
  return "hello, " + name;
}

int main() {
  std::cout << greet("world") << "\n";
}

← Back to CS Glossary