codegurukool.com · Free coding tutorials & online compiler

Home › C++ Tutorial › C++ introduction and get started

C++ introduction and get started

C with classes, built for speed.

C++ extends C with objects, templates and a big standard library (STL). It is used in games, browsers and finance. Install g++ (or an IDE), save as main.cpp, compile with g++ main.cpp -o main and run ./main.

Example code

#include <iostream>
using namespace std;

int main() {
  cout << "Hello, C++!" << endl;
  return 0;
}

Run this code in the online editor

← All commandsC++ installation →