C++ Cheat Sheet

Last Updated: November 21, 2025

Basic Syntax

#include <iostream>
using namespace std;

int main() {
    cout << "Hello World" << endl;
    return 0;
}

STL Containers

vector
Dynamic array
map
Key-value pairs
set
Unique sorted elements
💡 Pro Tip: Use smart pointers instead of raw pointers!
← Back to Programming Languages | Browse all categories | View all cheat sheets