previous | index | next

Basic C++ Types

Type Example
int 13
double 3.14159
char 'Q'
string "Hello World"
bool true/false

The type string is shorthand for a reference (pointer) to the first character in a null-terminated sequence of characters. Pointers will be discussed later.

The type bool stands for boolean (after George Boole):


previous | index | next