Skip to content

Types: numbers, text and more

Read · 1 of 4

Each box holds one kind of value

int: whole numbers like 42 or -7.

double: numbers with decimals like 49.5.

char: a single character, in single quotes: 'A'.

bool: true or false.

string: text, in double quotes: "Asha". Add #include <string> at the top to use it.