VEX V5 C++ : Basic C++

C++ cheat sheet

Here's a one-page cheat sheet covering basic C++ syntax:

Basic C++ Syntax Cheat Sheet

1. Comments

// Single-line comment

/* Multi-line

comment */

2. Data Types

int         // Integer

float       // Floating point

double      // Double-precision floating point

char        // Character

bool        // Boolean (true/false)

3. Variables

int x = 10;        // Declare and initialize

float y;            // Declare

y = 3.14;           // Assign value

4. Output

#include <iostream>