Let's have a closer look at variables, shall we?

In order to define a variable, we give it a type and a name but not necessarily a value.

Straight-forward, isn't it? With these declaration statements, a piece of memory is set aside for the variable.

Psst: while the string type belongs to the std namespace, these snippets assume a using directive.

We need to define the type first, and then give the name. Don't worry we'll go deeper into this later.