Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Resources

Basics

int main(){
  std::cout << "Hello, World!" << std::endl;
  std::cout << (int)('8'-'0') << std::endl; // 8
}
g++ -std=c++20 <filename>

or zig droping compiler

zig c++ -std=c++20 <filename>

Standard libary and Namespaces

#include <iostream>
#include <vector>
using namespace std;
using std::vector;

int main() {
    vector<int> numbers = {1, 2, 3};
}