When you first declare a variable in a statically typed language such as C++ you must declare what that variable is going to hold.
int number = 42;
var number = 42;
There are a lot of built-in type specifiers like double, char, float, etc in C++. You can also create your own specifiers by creating class and structs.